import type { GeneratedEtsLibFile } from "../../types/generated";

export const FILE: GeneratedEtsLibFile = {
  path: 'ets/api/@ohos.multimedia.image.d.ts',
  content: "/*\n * Copyright (C) 2022 Huawei Device Co., Ltd.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * @file\n * @kit ImageKit\n */\nimport { AsyncCallback } from './@ohos.base';\nimport type colorSpaceManager from './@ohos.graphics.colorSpaceManager';\nimport type resourceManager from './@ohos.resourceManager';\nimport type rpc from './@ohos.rpc';\n/**\n * @namespace image\n * @since 6\n */\n/**\n * This module provides the capability of image codec and access\n * @namespace image\n * @syscap SystemCapability.Multimedia.Image.Core\n * @crossplatform\n * @atomicservice\n * @since 11\n */\n/**\n * This module provides the capability of image codec and access\n * @namespace image\n * @syscap SystemCapability.Multimedia.Image.Core\n * @crossplatform\n * @form\n * @atomicservice\n * @since 12\n */\ndeclare namespace image {\n    /**\n     * Enumerates pixel map formats.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @since 7\n     */\n    /**\n     * Enumerates pixel map formats.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Enumerates pixel map formats.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Enumerates pixel map formats.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 12\n     */\n    enum PixelMapFormat {\n        /**\n         * Indicates an unknown format.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 7\n         */\n        /**\n         * Indicates an unknown format.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Indicates an unknown format.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Indicates an unknown format.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        UNKNOWN = 0,\n        /**\n         * Indicates that each pixel is stored on 32 bits. Each pixel contains 4 components：R(8bits), G(8bits), B(8bits), A(8bits)\n         * and are stored from the higher-order to the lower-order bits.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 18\n         */\n        ARGB_8888 = 1,\n        /**\n         * Indicates that each pixel is stored on 16 bits. Only the R, G, and B components are encoded\n         * from the higher-order to the lower-order bits: red is stored with 5 bits of precision,\n         * green is stored with 6 bits of precision, and blue is stored with 5 bits of precision.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 7\n         */\n        /**\n         * Indicates that each pixel is stored on 16 bits. Only the R, G, and B components are encoded\n         * from the higher-order to the lower-order bits: red is stored with 5 bits of precision,\n         * green is stored with 6 bits of precision, and blue is stored with 5 bits of precision.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Indicates that each pixel is stored on 16 bits. Only the R, G, and B components are encoded\n         * from the higher-order to the lower-order bits: red is stored with 5 bits of precision,\n         * green is stored with 6 bits of precision, and blue is stored with 5 bits of precision.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Indicates that each pixel is stored on 16 bits. Only the R, G, and B components are encoded\n         * from the higher-order to the lower-order bits: red is stored with 5 bits of precision,\n         * green is stored with 6 bits of precision, and blue is stored with 5 bits of precision.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        RGB_565 = 2,\n        /**\n         * Indicates that each pixel is stored on 32 bits. Each pixel contains 4 components：B(8bits), G(8bits), R(8bits), A(8bits)\n         * and are stored from the higher-order to the lower-order bits.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 7\n         */\n        /**\n         * Indicates that each pixel is stored on 32 bits. Each pixel contains 4 components：B(8bits), G(8bits), R(8bits), A(8bits)\n         * and are stored from the higher-order to the lower-order bits.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Indicates that each pixel is stored on 32 bits. Each pixel contains 4 components：B(8bits), G(8bits), R(8bits), A(8bits)\n         * and are stored from the higher-order to the lower-order bits.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Indicates that each pixel is stored on 32 bits. Each pixel contains 4 components：B(8bits), G(8bits), R(8bits), A(8bits)\n         * and are stored from the higher-order to the lower-order bits.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        RGBA_8888 = 3,\n        /**\n         * Indicates that each pixel is stored on 32 bits. Each pixel contains 4 components：B(8bits), G(8bits), R(8bits), A(8bits)\n         * and are stored from the higher-order to the lower-order bits.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        /**\n         * Indicates that each pixel is stored on 32 bits. Each pixel contains 4 components：B(8bits), G(8bits), R(8bits), A(8bits)\n         * and are stored from the higher-order to the lower-order bits.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Indicates that each pixel is stored on 32 bits. Each pixel contains 4 components：B(8bits), G(8bits), R(8bits), A(8bits)\n         * and are stored from the higher-order to the lower-order bits.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Indicates that each pixel is stored on 32 bits. Each pixel contains 4 components：B(8bits), G(8bits), R(8bits), A(8bits)\n         * and are stored from the higher-order to the lower-order bits.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        BGRA_8888 = 4,\n        /**\n         * Indicates that each pixel is stored on 24 bits. Each pixel contains 3 components：R(8bits), G(8bits), B(8bits)\n         * and are stored from the higher-order to the lower-order bits.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        /**\n         * Indicates that each pixel is stored on 24 bits. Each pixel contains 3 components：R(8bits), G(8bits), B(8bits)\n         * and are stored from the higher-order to the lower-order bits.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Indicates that each pixel is stored on 24 bits. Each pixel contains 3 components：R(8bits), G(8bits), B(8bits)\n         * and are stored from the higher-order to the lower-order bits.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Indicates that each pixel is stored on 24 bits. Each pixel contains 3 components：R(8bits), G(8bits), B(8bits)\n         * and are stored from the higher-order to the lower-order bits.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        RGB_888 = 5,\n        /**\n         * Indicates that each pixel is stored on 8 bits. Each pixel contains 1 component：ALPHA(8bits)\n         * and is stored from the higher-order to the lower-order bits.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        /**\n         * Indicates that each pixel is stored on 8 bits. Each pixel contains 1 component：ALPHA(8bits)\n         * and is stored from the higher-order to the lower-order bits.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Indicates that each pixel is stored on 8 bits. Each pixel contains 1 component：ALPHA(8bits)\n         * and is stored from the higher-order to the lower-order bits.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Indicates that each pixel is stored on 8 bits. Each pixel contains 1 component：ALPHA(8bits)\n         * and is stored from the higher-order to the lower-order bits.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        ALPHA_8 = 6,\n        /**\n         * Indicates that each pixel is stored on 32 bits. Each pixel contains 4 components：B(8bits), G(8bits), R(8bits), A(8bits)\n         * and are stored from the higher-order to the lower-order bits in F16.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        /**\n         * Indicates that each pixel is stored on 32 bits. Each pixel contains 4 components：B(8bits), G(8bits), R(8bits), A(8bits)\n         * and are stored from the higher-order to the lower-order bits in F16.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Indicates that each pixel is stored on 32 bits. Each pixel contains 4 components：B(8bits), G(8bits), R(8bits), A(8bits)\n         * and are stored from the higher-order to the lower-order bits in F16.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Indicates that each pixel is stored on 32 bits. Each pixel contains 4 components：B(8bits), G(8bits), R(8bits), A(8bits)\n         * and are stored from the higher-order to the lower-order bits in F16.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        RGBA_F16 = 7,\n        /**\n         * Indicates that the storage order is to store Y first and then V U alternately each occupies 8 bits\n         * and are stored from the higher-order to the lower-order bits.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        /**\n         * Indicates that the storage order is to store Y first and then V U alternately each occupies 8 bits\n         * and are stored from the higher-order to the lower-order bits.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Indicates that the storage order is to store Y first and then V U alternately each occupies 8 bits\n         * and are stored from the higher-order to the lower-order bits.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Indicates that the storage order is to store Y first and then V U alternately each occupies 8 bits\n         * and are stored from the higher-order to the lower-order bits.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        NV21 = 8,\n        /**\n         * Indicates that the storage order is to store Y first and then U V alternately each occupies 8 bits\n         * and are stored from the higher-order to the lower-order bits.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        /**\n         * Indicates that the storage order is to store Y first and then U V alternately each occupies 8 bits\n         * and are stored from the higher-order to the lower-order bits.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Indicates that the storage order is to store Y first and then U V alternately each occupies 8 bits\n         * and are stored from the higher-order to the lower-order bits.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Indicates that the storage order is to store Y first and then U V alternately each occupies 8 bits\n         * and are stored from the higher-order to the lower-order bits.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        NV12 = 9,\n        /**\n         * Indicates that each pixel is stored on 32 bits. Each pixel contains 4 components：\n         * R(10bits), G(10bits), B(10bits), A(2bits) and are stored from the higher-order to the lower-order bits.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 12\n         */\n        RGBA_1010102 = 10,\n        /**\n         * Indicates that the storage order is to store Y first and then U V alternately each occupies 10 bits\n         * and are stored from the higher-order to the lower-order bits.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 12\n         */\n        YCBCR_P010 = 11,\n        /**\n         * Indicates that the storage order is to store Y first and then V U alternately each occupies 10 bits\n         * and are stored from the higher-order to the lower-order bits.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 12\n         */\n        YCRCB_P010 = 12,\n        /**\n         * The storage format is ASTC 4x4 format, and the memory usage is only 1/4 of RGBA_8888.\n         * This format is only used for direct display scenes and does not support pixel access or post-\n         * processing editing.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 18\n         */\n        ASTC_4x4 = 102\n    }\n    /**\n     * Describes the size of an image.\n     *\n     * @typedef Size\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @since 6\n     */\n    /**\n     * Describes the size of an image.\n     *\n     * @typedef Size\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Describes the size of an image.\n     *\n     * @typedef Size\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Describes the size of an image.\n     *\n     * @typedef Size\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 12\n     */\n    interface Size {\n        /**\n         * Height\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 6\n         */\n        /**\n         * Height\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Height\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Height\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        height: number;\n        /**\n         * Width\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 6\n         */\n        /**\n         * Width\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Width\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Width\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        width: number;\n    }\n    /**\n     * Enumerates exchangeable image file format (Exif) information types of an image. This enumeration follows the EXIF\n     * standard. Please refer to the EXIF specification for more details.\n     *\n     * @enum { string }\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @since 7\n     */\n    /**\n     * Enumerates exchangeable image file format (Exif) information types of an image. This enumeration follows the EXIF\n     * standard. Please refer to the EXIF specification for more details.\n     *\n     * @enum { string }\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @crossplatform\n     * @since 10\n     */\n    enum PropertyKey {\n        /**\n         * The number of bits per image component. In this standard each component of the image is 8 bits, so the value for\n         * this tag is 8. In JPEG compressed data a JPEG marker is used instead of this tag.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 7\n         */\n        /**\n         * The number of bits per image component. In this standard each component of the image is 8 bits, so the value for\n         * this tag is 8. In JPEG compressed data a JPEG marker is used instead of this tag.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        BITS_PER_SAMPLE = 'BitsPerSample',\n        /**\n         * Image orientation.\n         * 1. \"Top-left\"      - The image is not rotated.\n         * 2. \"Top-right\"     - The image is mirrored horizontally.\n         * 3. \"Bottom-right\"  - The image is rotated 180 degrees.\n         * 4. \"Bottom-left\"   - The image is mirrored vertically.\n         * 5. \"Left-top\"      - The image is mirrored horizontally, then rotated 270 degrees clockwise.\n         * 6. \"Right-top\"     - The image is rotated 90 degrees clockwise.\n         * 7. \"Right-bottom\"  - The image is mirrored horizontally, then rotated 90 degrees clockwise.\n         * 8. \"Left-bottom\"   - The image is rotated 270 degrees clockwise.\n         * If an undefined value is read, the result will be \"Unknown Value <number>\".\n         * When retrieving the Orientation property, the value is returned as a string.\n         * When setting the Orientation property, both numeric values (1–8) and string labels are supported.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 7\n         */\n        /**\n         * Image orientation.\n         * 1. \"Top-left\"       - The image is not rotated.\n         * 2. \"Top-right\"      - The image is mirrored horizontally.\n         * 3. \"Bottom-right\"   - The image is rotated 180 degrees.\n         * 4. \"Bottom-left\"    - The image is mirrored vertically.\n         * 5. \"Left-top\"       - The image is mirrored horizontally, then rotated 270 degrees clockwise.\n         * 6. \"Right-top\"      - The image is rotated 90 degrees clockwise.\n         * 7. \"Right-bottom\"   - The image is mirrored horizontally, then rotated 90 degrees clockwise.\n         * 8. \"Left-bottom\"    - The image is rotated 270 degrees clockwise.\n         * If an undefined value is read, the result will be \"Unknown Value <number>\".\n         * When retrieving the Orientation property, the value is returned as a string.\n         * When setting the Orientation property, both numeric values (1–8) and string labels are supported.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        ORIENTATION = 'Orientation',\n        /**\n         * Image length.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 7\n         */\n        /**\n         * Image length.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        IMAGE_LENGTH = 'ImageLength',\n        /**\n         * Image width.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 7\n         */\n        /**\n         * Image width.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        IMAGE_WIDTH = 'ImageWidth',\n        /**\n         * GPS latitude. The latitude is expressed as three RATIONAL values giving the degrees, minutes, and\n         * seconds, respectively. If latitude is expressed as degrees, minutes and seconds, a typical format\n         * would be dd/1,mm/1,ss/1. When degrees and minutes are used and, for example, fractions of minutes\n         * are given up to two decimal places, the format would be dd/1,mmmm/100,0/1.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 7\n         */\n        /**\n         * GPS latitude. The latitude is expressed as three RATIONAL values giving the degrees, minutes, and\n         * seconds, respectively. If latitude is expressed as degrees, minutes and seconds, a typical format\n         * would be dd/1,mm/1,ss/1. When degrees and minutes are used and, for example, fractions of minutes\n         * are given up to two decimal places, the format would be dd/1,mmmm/100,0/1.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        GPS_LATITUDE = 'GPSLatitude',\n        /**\n         * GPS longitude. The longitude is expressed as three RATIONAL values giving the degrees, minutes, and\n         * seconds, respectively. If longitude is expressed as degrees, minutes and seconds, a typical format\n         * would be dd/1,mm/1,ss/1. When degrees and minutes are used and, for example, fractions of minutes\n         * are given up to two decimal places, the format would be dd/1,mmmm/100,0/1.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 7\n         */\n        /**\n         * GPS longitude. The longitude is expressed as three RATIONAL values giving the degrees, minutes, and\n         * seconds, respectively. If longitude is expressed as degrees, minutes and seconds, a typical format\n         * would be dd/1,mm/1,ss/1. When degrees and minutes are used and, for example, fractions of minutes\n         * are given up to two decimal places, the format would be dd/1,mmmm/100,0/1.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        GPS_LONGITUDE = 'GPSLongitude',\n        /**\n         * GPS latitude reference. For example, N indicates north latitude and S indicates south latitude.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 7\n         */\n        /**\n         * GPS latitude reference. For example, N indicates north latitude and S indicates south latitude.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        GPS_LATITUDE_REF = 'GPSLatitudeRef',\n        /**\n         * GPS longitude reference. For example, E indicates east longitude and W indicates west longitude.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 7\n         */\n        /**\n         * GPS longitude reference. For example, E indicates east longitude and W indicates west longitude.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        GPS_LONGITUDE_REF = 'GPSLongitudeRef',\n        /**\n         * The date and time when the original image data was generated. For a DSC the date and time the picture was taken\n         * are recorded. The format is \"YYYY:MM:DD HH:MM:SS\" with time shown in 24-hour format.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        /**\n         * The date and time when the original image data was generated. For a DSC the date and time the picture was taken\n         * are recorded. The format is \"YYYY:MM:DD HH:MM:SS\" with time shown in 24-hour format.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        DATE_TIME_ORIGINAL = 'DateTimeOriginal',\n        /**\n         * Exposure time\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        /**\n         * Exposure time\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        EXPOSURE_TIME = 'ExposureTime',\n        /**\n         * Scene type\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        /**\n         * Scene type\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        SCENE_TYPE = 'SceneType',\n        /**\n         * Indicates the ISO Speed and ISO Latitude of the camera or input device as specified in ISO 12232.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        /**\n         * Indicates the ISO Speed and ISO Latitude of the camera or input device as specified in ISO 12232.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        ISO_SPEED_RATINGS = 'ISOSpeedRatings',\n        /**\n         * Aperture value, such as f/1.8.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        /**\n         * Aperture value, such as f/1.8.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        F_NUMBER = 'FNumber',\n        /**\n         * The date and time of image creation. In this standard it is the date and time the file was changed. The format\n         * is \"YYYY:MM:DD HH:MM:SS\" with time shown in 24-hour format.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 10\n         */\n        DATE_TIME = 'DateTime',\n        /**\n         * GPS time stamp\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 10\n         */\n        GPS_TIME_STAMP = 'GPSTimeStamp',\n        /**\n         * GPS date stamp\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 10\n         */\n        GPS_DATE_STAMP = 'GPSDateStamp',\n        /**\n         * Image description\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 10\n         */\n        IMAGE_DESCRIPTION = 'ImageDescription',\n        /**\n         * Make\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 10\n         */\n        MAKE = 'Make',\n        /**\n         * Model\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 10\n         */\n        MODEL = 'Model',\n        /**\n         * Photo mode\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 10\n         */\n        PHOTO_MODE = 'PhotoMode',\n        /**\n         * Sensitivity type\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 10\n         */\n        SENSITIVITY_TYPE = 'SensitivityType',\n        /**\n         * Standard output sensitivity\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 10\n         */\n        STANDARD_OUTPUT_SENSITIVITY = 'StandardOutputSensitivity',\n        /**\n         * Recommended exposure index\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 10\n         */\n        RECOMMENDED_EXPOSURE_INDEX = 'RecommendedExposureIndex',\n        /**\n         * Indicates the ISO Speed and ISO Latitude of the camera or input device as specified in ISO 12232.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 10\n         */\n        ISO_SPEED = 'ISOSpeedRatings',\n        /**\n         * The lens aperture. The unit is the APEX((Additive System of Photographic Exposure) value.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 10\n         */\n        APERTURE_VALUE = 'ApertureValue',\n        /**\n         * Exposure bias value\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 10\n         */\n        EXPOSURE_BIAS_VALUE = 'ExposureBiasValue',\n        /**\n         * Metering mode\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 10\n         */\n        METERING_MODE = 'MeteringMode',\n        /**\n         * Light source\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 10\n         */\n        LIGHT_SOURCE = 'LightSource',\n        /**\n         * Flash\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 10\n         */\n        FLASH = 'Flash',\n        /**\n         * Focal length\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 10\n         */\n        FOCAL_LENGTH = 'FocalLength',\n        /**\n         * User comment\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 10\n         */\n        USER_COMMENT = 'UserComment',\n        /**\n         * Pixel x dimension\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 10\n         */\n        PIXEL_X_DIMENSION = 'PixelXDimension',\n        /**\n         * Pixel y dimension\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 10\n         */\n        PIXEL_Y_DIMENSION = 'PixelYDimension',\n        /**\n         * White balance\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 10\n         */\n        WHITE_BALANCE = 'WhiteBalance',\n        /**\n         * Focal length in 35mm film\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 10\n         */\n        FOCAL_LENGTH_IN_35_MM_FILM = 'FocalLengthIn35mmFilm',\n        /**\n         * Capture mode\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 10\n         */\n        CAPTURE_MODE = 'HwMnoteCaptureMode',\n        /**\n         * Physical aperture\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 10\n         */\n        PHYSICAL_APERTURE = 'HwMnotePhysicalAperture',\n        /**\n         * Roll Angle\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 11\n         */\n        ROLL_ANGLE = 'HwMnoteRollAngle',\n        /**\n         * Pitch Angle\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 11\n         */\n        PITCH_ANGLE = 'HwMnotePitchAngle',\n        /**\n         * Capture Scene: Food\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 11\n         */\n        SCENE_FOOD_CONF = 'HwMnoteSceneFoodConf',\n        /**\n         * Capture Scene: Stage\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 11\n         */\n        SCENE_STAGE_CONF = 'HwMnoteSceneStageConf',\n        /**\n         * Capture Scene: Blue Sky\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 11\n         */\n        SCENE_BLUE_SKY_CONF = 'HwMnoteSceneBlueSkyConf',\n        /**\n         * Capture Scene: Green Plant\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 11\n         */\n        SCENE_GREEN_PLANT_CONF = 'HwMnoteSceneGreenPlantConf',\n        /**\n         * Capture Scene: Beach\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 11\n         */\n        SCENE_BEACH_CONF = 'HwMnoteSceneBeachConf',\n        /**\n         * Capture Scene: Snow\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 11\n         */\n        SCENE_SNOW_CONF = 'HwMnoteSceneSnowConf',\n        /**\n         * Capture Scene: Sunset\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 11\n         */\n        SCENE_SUNSET_CONF = 'HwMnoteSceneSunsetConf',\n        /**\n         * Capture Scene: Flowers\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 11\n         */\n        SCENE_FLOWERS_CONF = 'HwMnoteSceneFlowersConf',\n        /**\n         * Capture Scene: Night\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 11\n         */\n        SCENE_NIGHT_CONF = 'HwMnoteSceneNightConf',\n        /**\n         * Capture Scene: Text\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 11\n         */\n        SCENE_TEXT_CONF = 'HwMnoteSceneTextConf',\n        /**\n         * Face Count\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 11\n         */\n        FACE_COUNT = 'HwMnoteFaceCount',\n        /**\n         * Focus Mode\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 11\n         */\n        FOCUS_MODE = 'HwMnoteFocusMode',\n        /**\n         * The scheme used for image compression.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        COMPRESSION = 'Compression',\n        /**\n         * Pixel composition, such as RGB or YCbCr.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        PHOTOMETRIC_INTERPRETATION = 'PhotometricInterpretation',\n        /**\n         * For each strip, the byte offset of that strip.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        STRIP_OFFSETS = 'StripOffsets',\n        /**\n         * The number of components per pixel. As the standard applies to both RGB and YCbCr images, the tag value is set\n         * to 3. For JPEG-compressed images, this tag is replaced by corresponding JPEG markers.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        SAMPLES_PER_PIXEL = 'SamplesPerPixel',\n        /**\n         * The number of rows per strip of image data.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        ROWS_PER_STRIP = 'RowsPerStrip',\n        /**\n         * The total number of bytes in each strip of image data.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        STRIP_BYTE_COUNTS = 'StripByteCounts',\n        /**\n         * The image resolution in the width direction.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        X_RESOLUTION = 'XResolution',\n        /**\n         * The image resolution in the height direction.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        Y_RESOLUTION = 'YResolution',\n        /**\n         * Indicates whether pixel components are recorded in a chunky or planar format.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        PLANAR_CONFIGURATION = 'PlanarConfiguration',\n        /**\n         * The unit used to measure XResolution and YResolution.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        RESOLUTION_UNIT = 'ResolutionUnit',\n        /**\n         * The transfer function for the image, typically used for color correction.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        TRANSFER_FUNCTION = 'TransferFunction',\n        /**\n         * The name and version of the software used to generate the image.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        SOFTWARE = 'Software',\n        /**\n         * The name of the person who created the image.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        ARTIST = 'Artist',\n        /**\n         * The chromaticity of the white point of the image.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        WHITE_POINT = 'WhitePoint',\n        /**\n         * The chromaticity of the primary colors of the image.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        PRIMARY_CHROMATICITIES = 'PrimaryChromaticities',\n        /**\n         * The matrix coefficients for transformation from RGB to YCbCr image data.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        YCBCR_COEFFICIENTS = 'YCbCrCoefficients',\n        /**\n         * The sampling ratio of chrominance components to the luminance component.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        YCBCR_SUB_SAMPLING = 'YCbCrSubSampling',\n        /**\n         * The position of chrominance components in relation to the luminance component.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        YCBCR_POSITIONING = 'YCbCrPositioning',\n        /**\n         * The reference black point value and reference white point value.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        REFERENCE_BLACK_WHITE = 'ReferenceBlackWhite',\n        /**\n         * Copyright information for the image.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        COPYRIGHT = 'Copyright',\n        /**\n         * The offset to the start byte (SOI) of JPEG compressed thumbnail data.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        JPEG_INTERCHANGE_FORMAT = 'JPEGInterchangeFormat',\n        /**\n         * The number of bytes of JPEG compressed thumbnail data.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        JPEG_INTERCHANGE_FORMAT_LENGTH = 'JPEGInterchangeFormatLength',\n        /**\n         * The class of the program used by the camera to set exposure when the picture is taken.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        EXPOSURE_PROGRAM = 'ExposureProgram',\n        /**\n         * Indicates the spectral sensitivity of each channel of the camera used.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        SPECTRAL_SENSITIVITY = 'SpectralSensitivity',\n        /**\n         * Indicates the Opto-Electric Conversion Function (OECF) specified in ISO 14524.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        OECF = 'OECF',\n        /**\n         * The version of the Exif standard supported.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        EXIF_VERSION = 'ExifVersion',\n        /**\n         * The date and time when the image was stored as digital data. If, for example, an image was captured by DSC and\n         * at the same time the file was recorded, then the DateTimeOriginal and DateTimeDigitized will have the same\n         * contents. The format is \"YYYY:MM:DD HH:MM:SS\" with time shown in 24-hour format.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        DATE_TIME_DIGITIZED = 'DateTimeDigitized',\n        /**\n         * Information specific to compressed data.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        COMPONENTS_CONFIGURATION = 'ComponentsConfiguration',\n        /**\n         * The shutter speed, expressed as an APEX (Additive System of Photographic Exposure) value.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        SHUTTER_SPEED = 'ShutterSpeedValue',\n        /**\n         * The brightness value of the image, in APEX units.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        BRIGHTNESS_VALUE = 'BrightnessValue',\n        /**\n         * The smallest F number of lens.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        MAX_APERTURE_VALUE = 'MaxApertureValue',\n        /**\n         * The distance to the subject, measured in meters.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        SUBJECT_DISTANCE = 'SubjectDistance',\n        /**\n         * This tag indicate the location and area of the main subject in the overall scene.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        SUBJECT_AREA = 'SubjectArea',\n        /**\n         * A tag for manufacturers of Exif/DCF writers to record any desired information.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        MAKER_NOTE = 'MakerNote',\n        /**\n         * A tag for record fractions of seconds for the DateTime tag.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        SUBSEC_TIME = 'SubsecTime',\n        /**\n         * A tag used to record fractions of seconds for the DateTimeOriginal tag.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        SUBSEC_TIME_ORIGINAL = 'SubsecTimeOriginal',\n        /**\n         * A tag used to record fractions of seconds for the DateTimeDigitized tag.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        SUBSEC_TIME_DIGITIZED = 'SubsecTimeDigitized',\n        /**\n         * This tag denotes the Flashpix format version supported by an FPXR file, enhancing device compatibility.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        FLASHPIX_VERSION = 'FlashpixVersion',\n        /**\n         * The color space information tag, often recorded as the color space specifier.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        COLOR_SPACE = 'ColorSpace',\n        /**\n         * The name of an audio file related to the image data.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        RELATED_SOUND_FILE = 'RelatedSoundFile',\n        /**\n         * Strobe energy at image capture, in BCPS.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        FLASH_ENERGY = 'FlashEnergy',\n        /**\n         * Camera or input device spatial frequency table.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        SPATIAL_FREQUENCY_RESPONSE = 'SpatialFrequencyResponse',\n        /**\n         * Pixels per FocalPlaneResolutionUnit in the image width.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        FOCAL_PLANE_X_RESOLUTION = 'FocalPlaneXResolution',\n        /**\n         * Pixels per FocalPlaneResolutionUnit in the image height.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        FOCAL_PLANE_Y_RESOLUTION = 'FocalPlaneYResolution',\n        /**\n         * Unit for measuring FocalPlaneXResolution and FocalPlaneYResolution.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        FOCAL_PLANE_RESOLUTION_UNIT = 'FocalPlaneResolutionUnit',\n        /**\n         * Location of the main subject, relative to the left edge.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        SUBJECT_LOCATION = 'SubjectLocation',\n        /**\n         * Selected exposure index at capture.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        EXPOSURE_INDEX = 'ExposureIndex',\n        /**\n         * Image sensor type on the camera.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        SENSING_METHOD = 'SensingMethod',\n        /**\n         * Indicates the image source.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        FILE_SOURCE = 'FileSource',\n        /**\n         * Color filter array (CFA) geometric pattern of the image sensor.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        CFA_PATTERN = 'CFAPattern',\n        /**\n         * Indicates special processing on image data.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        CUSTOM_RENDERED = 'CustomRendered',\n        /**\n         * Exposure mode set when the image was shot.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        EXPOSURE_MODE = 'ExposureMode',\n        /**\n         * Digital zoom ratio at the time of capture.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        DIGITAL_ZOOM_RATIO = 'DigitalZoomRatio',\n        /**\n         * Type of scene captured.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        SCENE_CAPTURE_TYPE = 'SceneCaptureType',\n        /**\n         * Degree of overall image gain adjustment.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        GAIN_CONTROL = 'GainControl',\n        /**\n         * Direction of contrast processing applied by the camera.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        CONTRAST = 'Contrast',\n        /**\n         * Direction of saturation processing applied by the camera.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        SATURATION = 'Saturation',\n        /**\n         * The direction of sharpness processing applied by the camera.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        SHARPNESS = 'Sharpness',\n        /**\n         * Information on picture-taking conditions for a specific camera model.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        DEVICE_SETTING_DESCRIPTION = 'DeviceSettingDescription',\n        /**\n         * Indicates the distance range to the subject.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        SUBJECT_DISTANCE_RANGE = 'SubjectDistanceRange',\n        /**\n         * An identifier uniquely assigned to each image.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        IMAGE_UNIQUE_ID = 'ImageUniqueID',\n        /**\n         * The version of the GPSInfoIFD.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        GPS_VERSION_ID = 'GPSVersionID',\n        /**\n         * Reference altitude used for GPS altitude.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        GPS_ALTITUDE_REF = 'GPSAltitudeRef',\n        /**\n         * The altitude based on the reference in GPSAltitudeRef.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        GPS_ALTITUDE = 'GPSAltitude',\n        /**\n         * The GPS satellites used for measurements.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        GPS_SATELLITES = 'GPSSatellites',\n        /**\n         * The status of the GPS receiver when the image is recorded.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        GPS_STATUS = 'GPSStatus',\n        /**\n         * The GPS measurement mode.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        GPS_MEASURE_MODE = 'GPSMeasureMode',\n        /**\n         * The GPS DOP (data degree of precision).\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        GPS_DOP = 'GPSDOP',\n        /**\n         * The unit used to express the GPS receiver speed of movement.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        GPS_SPEED_REF = 'GPSSpeedRef',\n        /**\n         * The speed of GPS receiver movement.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        GPS_SPEED = 'GPSSpeed',\n        /**\n         * The reference for giving the direction of GPS receiver movement.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        GPS_TRACK_REF = 'GPSTrackRef',\n        /**\n         * The direction of GPS receiver movement.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        GPS_TRACK = 'GPSTrack',\n        /**\n         * The reference for the image's direction.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        GPS_IMG_DIRECTION_REF = 'GPSImgDirectionRef',\n        /**\n         * The direction of the image when captured.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        GPS_IMG_DIRECTION = 'GPSImgDirection',\n        /**\n         * Geodetic survey data used by the GPS receiver.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        GPS_MAP_DATUM = 'GPSMapDatum',\n        /**\n         * Indicates the latitude reference of the destination point.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        GPS_DEST_LATITUDE_REF = 'GPSDestLatitudeRef',\n        /**\n         * The latitude of the destination point.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        GPS_DEST_LATITUDE = 'GPSDestLatitude',\n        /**\n         * Indicates the longitude reference of the destination point.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        GPS_DEST_LONGITUDE_REF = 'GPSDestLongitudeRef',\n        /**\n         * The longitude of the destination point.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        GPS_DEST_LONGITUDE = 'GPSDestLongitude',\n        /**\n         * The reference for the bearing to the destination point.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        GPS_DEST_BEARING_REF = 'GPSDestBearingRef',\n        /**\n         * The bearing to the destination point.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        GPS_DEST_BEARING = 'GPSDestBearing',\n        /**\n         * The measurement unit for the distance to the target point.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        GPS_DEST_DISTANCE_REF = 'GPSDestDistanceRef',\n        /**\n         * The distance to the destination point.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        GPS_DEST_DISTANCE = 'GPSDestDistance',\n        /**\n         * A character string recording the name of the method used for location finding.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        GPS_PROCESSING_METHOD = 'GPSProcessingMethod',\n        /**\n         * A character string recording the name of the GPS area.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        GPS_AREA_INFORMATION = 'GPSAreaInformation',\n        /**\n         * This field denotes if differential correction was applied to GPS data, crucial for precise location accuracy.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        GPS_DIFFERENTIAL = 'GPSDifferential',\n        /**\n         * The serial number of the camera body.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        BODY_SERIAL_NUMBER = 'BodySerialNumber',\n        /**\n         * The name of the camera owner.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        CAMERA_OWNER_NAME = 'CameraOwnerName',\n        /**\n         * Indicates whether the image is a composite image.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        COMPOSITE_IMAGE = 'CompositeImage',\n        /**\n         * The compression mode used for a compressed image, in unit bits per pixel.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        COMPRESSED_BITS_PER_PIXEL = 'CompressedBitsPerPixel',\n        /**\n         * The DNGVersion tag encodes the four-tier version number for DNG specification compliance.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        DNG_VERSION = 'DNGVersion',\n        /**\n         * DefaultCropSize specifies the final image size in raw coordinates, accounting for extra edge pixels.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        DEFAULT_CROP_SIZE = 'DefaultCropSize',\n        /**\n         * Indicates the value of coefficient gamma.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        GAMMA = 'Gamma',\n        /**\n         * The tag indicate the ISO speed latitude yyy value of the camera or input device that is defined in ISO 12232.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        ISO_SPEED_LATITUDE_YYY = 'ISOSpeedLatitudeyyy',\n        /**\n         * The tag indicate the ISO speed latitude zzz value of the camera or input device that is defined in ISO 12232.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        ISO_SPEED_LATITUDE_ZZZ = 'ISOSpeedLatitudezzz',\n        /**\n         * The manufacturer of the lens.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        LENS_MAKE = 'LensMake',\n        /**\n         * The model name of the lens.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        LENS_MODEL = 'LensModel',\n        /**\n         * The serial number of the lens.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        LENS_SERIAL_NUMBER = 'LensSerialNumber',\n        /**\n         * Specifications of the lens used.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        LENS_SPECIFICATION = 'LensSpecification',\n        /**\n         * This tag provides a broad description of the data type in this subfile.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        NEW_SUBFILE_TYPE = 'NewSubfileType',\n        /**\n         * This tag records the UTC offset for the DateTime tag, ensuring accurate timestamps regardless of location.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        OFFSET_TIME = 'OffsetTime',\n        /**\n         * This tag records the UTC offset when the image was digitized, aiding in accurate timestamp adjustment.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        OFFSET_TIME_DIGITIZED = 'OffsetTimeDigitized',\n        /**\n         * This tag records the UTC offset when the original image was created, crucial for time-sensitive applications.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        OFFSET_TIME_ORIGINAL = 'OffsetTimeOriginal',\n        /**\n         * Exposure times of source images for a composite image, such as 1/33 sec.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        SOURCE_EXPOSURE_TIMES_OF_COMPOSITE_IMAGE = 'SourceExposureTimesOfCompositeImage',\n        /**\n         * The number of source images used for a composite image.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        SOURCE_IMAGE_NUMBER_OF_COMPOSITE_IMAGE = 'SourceImageNumberOfCompositeImage',\n        /**\n         * This deprecated tag indicates the data type in this subfile. Use NewSubfileType instead.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        SUBFILE_TYPE = 'SubfileType',\n        /**\n         * This tag indicates horizontal positioning errors in meters.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        GPS_H_POSITIONING_ERROR = 'GPSHPositioningError',\n        /**\n         * This tag indicates the sensitivity of the camera or input device when the image was shot.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        PHOTOGRAPHIC_SENSITIVITY = 'PhotographicSensitivity',\n        /**\n         * Burst Number\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        BURST_NUMBER = 'HwMnoteBurstNumber',\n        /**\n         * Face Conf\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        FACE_CONF = 'HwMnoteFaceConf',\n        /**\n         * Face Leye Center\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        FACE_LEYE_CENTER = 'HwMnoteFaceLeyeCenter',\n        /**\n         * Face Mouth Center\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        FACE_MOUTH_CENTER = 'HwMnoteFaceMouthCenter',\n        /**\n         * Face Pointer\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        FACE_POINTER = 'HwMnoteFacePointer',\n        /**\n         * Face Rect\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        FACE_RECT = 'HwMnoteFaceRect',\n        /**\n         * Face Reye Center\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        FACE_REYE_CENTER = 'HwMnoteFaceReyeCenter',\n        /**\n         * Face Smile Score\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        FACE_SMILE_SCORE = 'HwMnoteFaceSmileScore',\n        /**\n         * Face Version\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        FACE_VERSION = 'HwMnoteFaceVersion',\n        /**\n         * Front Camera\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        FRONT_CAMERA = 'HwMnoteFrontCamera',\n        /**\n         * Scene Pointer\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        SCENE_POINTER = 'HwMnoteScenePointer',\n        /**\n         * Scene Version\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        SCENE_VERSION = 'HwMnoteSceneVersion',\n        /**\n         * Is Xmage Supported\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        IS_XMAGE_SUPPORTED = 'HwMnoteIsXmageSupported',\n        /**\n         * Xmage Mode\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        XMAGE_MODE = 'HwMnoteXmageMode',\n        /**\n         * Xmage X1 Coordinate\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        XMAGE_LEFT = 'HwMnoteXmageLeft',\n        /**\n         * Xmage Y1 Coordinate\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        XMAGE_TOP = 'HwMnoteXmageTop',\n        /**\n         * Xmage X2 Coordinate\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        XMAGE_RIGHT = 'HwMnoteXmageRight',\n        /**\n         * Xmage Y2 Coordinate\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        XMAGE_BOTTOM = 'HwMnoteXmageBottom',\n        /**\n         * Cloud Enhancement Mode\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        CLOUD_ENHANCEMENT_MODE = 'HwMnoteCloudEnhancementMode',\n        /**\n         * Wind Snapshot Mode\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        WIND_SNAPSHOT_MODE = 'HwMnoteWindSnapshotMode',\n        /**\n         * GIF LOOP COUNT\n         * If infinite loop returns 0, other values represent the number of loops\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        GIF_LOOP_COUNT = 'GIFLoopCount'\n    }\n    /**\n     * Enum for image formats.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @since 9\n     */\n    enum ImageFormat {\n        /**\n         * YCBCR422 semi-planar format.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        YCBCR_422_SP = 1000,\n        /**\n         * JPEG encoding format.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        JPEG = 2000\n    }\n    /**\n     * Enumerates alpha types.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @since 9\n     */\n    /**\n     * Enumerates alpha types.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Enumerates alpha types.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Enumerates alpha types.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 12\n     */\n    enum AlphaType {\n        /**\n         * Indicates an unknown alpha type.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        /**\n         * Indicates an unknown alpha type.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Indicates an unknown alpha type.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Indicates an unknown alpha type.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        UNKNOWN = 0,\n        /**\n         * Indicates that the image has no alpha channel, or all pixels in the image are fully opaque.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        /**\n         * Indicates that the image has no alpha channel, or all pixels in the image are fully opaque.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Indicates that the image has no alpha channel, or all pixels in the image are fully opaque.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Indicates that the image has no alpha channel, or all pixels in the image are fully opaque.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        OPAQUE = 1,\n        /**\n         * Indicates that RGB components of each pixel in the image are premultiplied by alpha.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        /**\n         * Indicates that RGB components of each pixel in the image are premultiplied by alpha.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Indicates that RGB components of each pixel in the image are premultiplied by alpha.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Indicates that RGB components of each pixel in the image are premultiplied by alpha.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        PREMUL = 2,\n        /**\n         * Indicates that RGB components of each pixel in the image are independent of alpha and are not premultiplied by alpha.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        /**\n         * Indicates that RGB components of each pixel in the image are independent of alpha and are not premultiplied by alpha.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Indicates that RGB components of each pixel in the image are independent of alpha and are not premultiplied by alpha.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Indicates that RGB components of each pixel in the image are independent of alpha and are not premultiplied by alpha.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        UNPREMUL = 3\n    }\n    /**\n     * Enumerates decoding dynamic range.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @since 12\n     */\n    enum DecodingDynamicRange {\n        /**\n         * Decoding according to the content of the image. If the image is an HDR image, it will be decoded as HDR content;\n         * otherwise, it will be decoded as SDR content.\n         * Imagesources created via {@link CreateIncrementalSource} will be decoded as SDR content.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 12\n         */\n        AUTO = 0,\n        /**\n         * Decoding to standard dynamic range.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 12\n         */\n        SDR = 1,\n        /**\n         * Decoding to high dynamic range. Imagesources created via {@link CreateIncrementalSource} will be decoded as SDR content.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 12\n         */\n        HDR = 2\n    }\n    /**\n     * Enumerates packing dynamic range.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @since 12\n     */\n    enum PackingDynamicRange {\n        /**\n         * Packing according to the content of the image. If the image is an HDR image, it will be encoded as HDR content;\n         * otherwise, it will be encoded as SDR content.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 12\n         */\n        AUTO = 0,\n        /**\n         * Packing to standard dynamic range.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 12\n         */\n        SDR = 1\n    }\n    /**\n     * Enumerates the anti-aliasing level.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @since 12\n     */\n    /**\n     * Enumerates the anti-aliasing level.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @atomicservice\n     * @since 14\n     */\n    enum AntiAliasingLevel {\n        /**\n         * Nearest-neighbor interpolation algorithm.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 12\n         */\n        /**\n         * Nearest-neighbor interpolation algorithm.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @atomicservice\n         * @since 14\n         */\n        NONE = 0,\n        /**\n         * Bilinear interpolation algorithm.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 12\n         */\n        /**\n         * Bilinear interpolation algorithm.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @atomicservice\n         * @since 14\n         */\n        LOW = 1,\n        /**\n         * Bilinear interpolation algorithm with mipmap linear filtering.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 12\n         */\n        /**\n         * Bilinear interpolation algorithm with mipmap linear filtering.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @atomicservice\n         * @since 14\n         */\n        MEDIUM = 2,\n        /**\n         * Cubic interpolation algorithm.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 12\n         */\n        /**\n         * Cubic interpolation algorithm.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @atomicservice\n         * @since 14\n         */\n        HIGH = 3\n    }\n    /**\n     * Enum for image scale mode.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @since 9\n     */\n    /**\n     * Enum for image scale mode.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Enum for image scale mode.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Enum for image scale mode.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 12\n     */\n    enum ScaleMode {\n        /**\n         * Indicates the effect that fits the image into the target size.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        /**\n         * Indicates the effect that fits the image into the target size.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Indicates the effect that fits the image into the target size.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Indicates the effect that fits the image into the target size.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        FIT_TARGET_SIZE = 0,\n        /**\n         * Indicates the effect that scales an image to fill the target image area and center-crops the part outside the area.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        /**\n         * Indicates the effect that scales an image to fill the target image area and center-crops the part outside the area.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Indicates the effect that scales an image to fill the target image area and center-crops the part outside the area.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Indicates the effect that scales an image to fill the target image area and center-crops the part outside the area.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        CENTER_CROP = 1\n    }\n    /**\n     * The component type of image.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Multimedia.Image.ImageReceiver\n     * @since 9\n     */\n    enum ComponentType {\n        /**\n         * Luma info.\n         *\n         * @syscap SystemCapability.Multimedia.Image.ImageReceiver\n         * @since 9\n         */\n        YUV_Y = 1,\n        /**\n         * Chrominance info.\n         *\n         * @syscap SystemCapability.Multimedia.Image.ImageReceiver\n         * @since 9\n         */\n        YUV_U = 2,\n        /**\n         * Chroma info.\n         *\n         * @syscap SystemCapability.Multimedia.Image.ImageReceiver\n         * @since 9\n         */\n        YUV_V = 3,\n        /**\n         * Jpeg type.\n         *\n         * @syscap SystemCapability.Multimedia.Image.ImageReceiver\n         * @since 9\n         */\n        JPEG = 4\n    }\n    /**\n     * Enumerates the HDR metadata types that need to be stored in Pixelmap.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @since 12\n     */\n    enum HdrMetadataKey {\n        /**\n         * Indicate the types of metadata that image needs to use.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 12\n         */\n        HDR_METADATA_TYPE = 0,\n        /**\n         * Static metadata key.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 12\n         */\n        HDR_STATIC_METADATA = 1,\n        /**\n         * Dynamic metadata key.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 12\n         */\n        HDR_DYNAMIC_METADATA = 2,\n        /**\n         * Gainmap metadata key.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 12\n         */\n        HDR_GAINMAP_METADATA = 3\n    }\n    /**\n     * Value for HDR_METADATA_TYPE.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @since 12\n     */\n    enum HdrMetadataType {\n        /**\n         * No metadata.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 12\n         */\n        NONE = 0,\n        /**\n         * Indicates that metadata will be used for the base image.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 12\n         */\n        BASE = 1,\n        /**\n         * Indicates that metadata will be used for the gainmap image.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 12\n         */\n        GAINMAP = 2,\n        /**\n         * Indicates that metadata will be used for the alternate image.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 12\n         */\n        ALTERNATE = 3\n    }\n    /**\n     * Type of allocator used to allocate memory of a PixelMap.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @since 15\n     */\n    enum AllocatorType {\n        /**\n         * The system determines which memory to use to create the PixelMap.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 15\n         */\n        AUTO = 0,\n        /**\n         * Use DMA buffer to create the PixelMap.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 15\n         */\n        DMA = 1,\n        /**\n         * Use share memory to create the PixelMap.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 15\n         */\n        SHARE_MEMORY = 2\n    }\n    /**\n     * Describes region information.\n     *\n     * @typedef Region\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @since 8\n     */\n    /**\n     * Describes region information.\n     *\n     * @typedef Region\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Describes region information.\n     *\n     * @typedef Region\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Describes region information.\n     *\n     * @typedef Region\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 12\n     */\n    interface Region {\n        /**\n         * Image size.\n         *\n         * @type { Size }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 7\n         */\n        /**\n         * Image size.\n         *\n         * @type { Size }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Image size.\n         *\n         * @type { Size }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Image size.\n         *\n         * @type { Size }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        size: Size;\n        /**\n         * x-coordinate at the upper left corner of the image.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 7\n         */\n        /**\n         * x-coordinate at the upper left corner of the image.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * x-coordinate at the upper left corner of the image.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * x-coordinate at the upper left corner of the image.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        x: number;\n        /**\n         * y-coordinate at the upper left corner of the image.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 7\n         */\n        /**\n         * y-coordinate at the upper left corner of the image.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * y-coordinate at the upper left corner of the image.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * y-coordinate at the upper left corner of the image.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        y: number;\n    }\n    /**\n     * Describes area information in an image.\n     *\n     * @typedef PositionArea\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @since 7\n     */\n    /**\n     * Describes area information in an image.\n     *\n     * @typedef PositionArea\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Describes area information in an image.\n     *\n     * @typedef PositionArea\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Describes area information in an image.\n     *\n     * @typedef PositionArea\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 12\n     */\n    interface PositionArea {\n        /**\n         * Image data that will be read or written.\n         *\n         * @type { ArrayBuffer }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 7\n         */\n        /**\n         * Image data that will be read or written.\n         *\n         * @type { ArrayBuffer }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Image data that will be read or written.\n         *\n         * @type { ArrayBuffer }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Image data that will be read or written.\n         *\n         * @type { ArrayBuffer }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        pixels: ArrayBuffer;\n        /**\n         * Offset for data reading.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 7\n         */\n        /**\n         * Offset for data reading.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Offset for data reading.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Offset for data reading.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        offset: number;\n        /**\n         * Number of bytes to read.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 7\n         */\n        /**\n         * Number of bytes to read.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Number of bytes to read.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Number of bytes to read.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        stride: number;\n        /**\n         * Region to read.\n         *\n         * @type { Region }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 7\n         */\n        /**\n         * Region to read.\n         *\n         * @type { Region }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Region to read.\n         *\n         * @type { Region }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Region to read.\n         *\n         * @type { Region }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        region: Region;\n    }\n    /**\n     * Describes image information.\n     *\n     * @typedef ImageInfo\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @since 6\n     */\n    /**\n     * Describes image information.\n     *\n     * @typedef ImageInfo\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Describes image information.\n     *\n     * @typedef ImageInfo\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Describes image information.\n     *\n     * @typedef ImageInfo\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 12\n     */\n    interface ImageInfo {\n        /**\n         * Indicates image dimensions specified by a {@link Size} interface.\n         *\n         * @type { Size }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 6\n         */\n        /**\n         * Indicates image dimensions specified by a {@link Size} interface.\n         *\n         * @type { Size }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Indicates image dimensions specified by a {@link Size} interface.\n         *\n         * @type { Size }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Indicates image dimensions specified by a {@link Size} interface.\n         *\n         * @type { Size }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        size: Size;\n        /**\n         * Indicates image default density.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        /**\n         * Indicates image default density.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Indicates image default density.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Indicates image default density.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        density: number;\n        /**\n         * The number of byte per row.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * The number of byte per row.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        stride: number;\n        /**\n         * Indicates image format.\n         *\n         * @type { PixelMapFormat }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        pixelFormat: PixelMapFormat;\n        /**\n         * Indicates image alpha type.\n         *\n         * @type { AlphaType }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        alphaType: AlphaType;\n        /**\n         * Indicates image mime type.\n         *\n         * @type { string }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 12\n         */\n        mimeType: string;\n        /**\n         * Indicates whether the image high dynamic range\n         *\n         * @type { boolean }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 12\n         */\n        isHdr: boolean;\n    }\n    /**\n     * Enumerates the strategies for executing the cropping and scaling operations when both desiredSize and desiredRegion are specified.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @since 18\n     */\n    enum CropAndScaleStrategy {\n        /**\n         * Scales and then crops the image.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 18\n         */\n        SCALE_FIRST = 1,\n        /**\n         * Crops and then scales the image.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 18\n         */\n        CROP_FIRST = 2\n    }\n    /**\n     * Describes the option for image packing.\n     *\n     * @typedef PackingOption\n     * @syscap SystemCapability.Multimedia.Image.ImagePacker\n     * @since 6\n     */\n    /**\n     * Describes the option for image packing.\n     *\n     * @typedef PackingOption\n     * @syscap SystemCapability.Multimedia.Image.ImagePacker\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Describes the option for image packing.\n     *\n     * @typedef PackingOption\n     * @syscap SystemCapability.Multimedia.Image.ImagePacker\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    interface PackingOption {\n        /**\n         * Multipurpose Internet Mail Extensions (MIME) format of the target image, for example, image/jpeg.\n         *\n         * @type { string }\n         * @syscap SystemCapability.Multimedia.Image.ImagePacker\n         * @since 6\n         */\n        /**\n         * Multipurpose Internet Mail Extensions (MIME) format of the target image, for example, image/jpeg.\n         *\n         * @type { string }\n         * @syscap SystemCapability.Multimedia.Image.ImagePacker\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Multipurpose Internet Mail Extensions (MIME) format of the target image, for example, image/jpeg.\n         *\n         * @type { string }\n         * @syscap SystemCapability.Multimedia.Image.ImagePacker\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        format: string;\n        /**\n         * Quality of the target image. The value is an integer ranging from 0 to 100. A larger value indicates better.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.ImagePacker\n         * @since 6\n         */\n        /**\n         * Quality of the target image. The value is an integer ranging from 0 to 100. A larger value indicates better.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.ImagePacker\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Quality of the target image. The value is an integer ranging from 0 to 100. A larger value indicates better.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.ImagePacker\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        quality: number;\n        /**\n         * BufferSize of the target image.\n         * If this bufferSize is less than or equal to 0, it will be converted to 10MB.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.Multimedia.Image.ImagePacker\n         * @since 9\n         */\n        /**\n         * BufferSize of the target image.\n         * If this bufferSize is less than or equal to 0, it will be converted to 10MB.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.Multimedia.Image.ImagePacker\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * BufferSize of the target image.\n         * If this bufferSize is less than or equal to 0, it will be converted to 10MB.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.Multimedia.Image.ImagePacker\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        bufferSize?: number;\n        /**\n         * The desired dynamic range of the target image.\n         *\n         * @type { ?PackingDynamicRange }\n         * @syscap SystemCapability.Multimedia.Image.ImagePacker\n         * @since 12\n         */\n        desiredDynamicRange?: PackingDynamicRange;\n        /**\n         * Whether the image properties can be saved, like Exif.\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.Multimedia.Image.ImagePacker\n         * @since 12\n         */\n        needsPackProperties?: boolean;\n    }\n    /**\n     * Describes the options for image sequence packing.\n     *\n     * @typedef PackingOptionsForSequence\n     * @syscap SystemCapability.Multimedia.Image.ImagePacker\n     * @since 18\n     */\n    interface PackingOptionsForSequence {\n        /**\n         * Specify the number of frames.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.ImagePacker\n         * @since 18\n         */\n        frameCount: number;\n        /**\n         * Specify the delay time for each frame of the dynamic image.\n         * If the length is less than frameCount, the missing parts will be filling with the last value\n         *\n         * @type { Array<number> }\n         * @syscap SystemCapability.Multimedia.Image.ImagePacker\n         * @since 18\n         */\n        delayTimeList: Array<number>;\n        /**\n         * Specify the disposal types of each frame in the image sequence packing.\n         *\n         * @type { ?Array<number> }\n         * @syscap SystemCapability.Multimedia.Image.ImagePacker\n         * @since 18\n         */\n        disposalTypes?: Array<number>;\n        /**\n         * Specify the number of times the loop should, the range is [0, 65535]\n         * If this loop is equal to 0, it will be infinite loop.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.Multimedia.Image.ImagePacker\n         * @since 18\n         */\n        loopCount?: number;\n    }\n    /**\n     * Describes image properties.\n     *\n     * @typedef GetImagePropertyOptions\n     * @syscap SystemCapability.Multimedia.Image.ImageSource\n     * @since 7\n     * @deprecated since 11\n     * @useinstead image.ImagePropertyOptions\n     */\n    /**\n     * Describes image properties.\n     *\n     * @typedef GetImagePropertyOptions\n     * @syscap SystemCapability.Multimedia.Image.ImageSource\n     * @crossplatform\n     * @since 10\n     * @deprecated since 11\n     * @useinstead image.ImagePropertyOptions\n     */\n    interface GetImagePropertyOptions {\n        /**\n         * Index of an image.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @since 7\n         * @deprecated since 11\n         * @useinstead image.ImagePropertyOptions#index\n         */\n        /**\n         * Index of an image.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 10\n         * @deprecated since 11\n         * @useinstead image.ImagePropertyOptions#index\n         */\n        index?: number;\n        /**\n         * Default property value.\n         *\n         * @type { ?string }\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @since 7\n         * @deprecated since 11\n         * @useinstead image.ImagePropertyOptions#defaultValue\n         */\n        /**\n         * Default property value.\n         *\n         * @type { ?string }\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 10\n         * @deprecated since 11\n         * @useinstead image.ImagePropertyOptions#defaultValue\n         */\n        defaultValue?: string;\n    }\n    /**\n     * Describes image properties.\n     *\n     * @typedef ImagePropertyOptions\n     * @syscap SystemCapability.Multimedia.Image.ImageSource\n     * @crossplatform\n     * @since 11\n     */\n    interface ImagePropertyOptions {\n        /**\n         * Index of an image.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 11\n         */\n        index?: number;\n        /**\n         * Default property value.\n         *\n         * @type { ?string }\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 11\n         */\n        defaultValue?: string;\n    }\n    /**\n     * Describes image decoding parameters.\n     *\n     * @typedef DecodingOptions\n     * @syscap SystemCapability.Multimedia.Image.ImageSource\n     * @since 7\n     */\n    /**\n     * Describes image decoding parameters.\n     *\n     * @typedef DecodingOptions\n     * @syscap SystemCapability.Multimedia.Image.ImageSource\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Describes image decoding parameters.\n     *\n     * @typedef DecodingOptions\n     * @syscap SystemCapability.Multimedia.Image.ImageSource\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Describes image decoding parameters.\n     *\n     * @typedef DecodingOptions\n     * @syscap SystemCapability.Multimedia.Image.ImageSource\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 12\n     */\n    interface DecodingOptions {\n        /**\n         * Number of image frames.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @since 7\n         */\n        /**\n         * Number of image frames.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Number of image frames.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Number of image frames.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        index?: number;\n        /**\n         * Sampling ratio of the image pixel map.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @since 7\n         */\n        /**\n         * Sampling ratio of the image pixel map.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Sampling ratio of the image pixel map.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Sampling ratio of the image pixel map.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        sampleSize?: number;\n        /**\n         * Rotation angle of the image pixel map. The value ranges from 0 to 360.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @since 7\n         */\n        /**\n         * Rotation angle of the image pixel map. The value ranges from 0 to 360.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Rotation angle of the image pixel map. The value ranges from 0 to 360.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Rotation angle of the image pixel map. The value ranges from 0 to 360.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        rotate?: number;\n        /**\n         * Whether the image pixel map is editable.\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @since 7\n         */\n        /**\n         * Whether the image pixel map is editable.\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Whether the image pixel map is editable.\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Whether the image pixel map is editable.\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        editable?: boolean;\n        /**\n         * Width and height of the image pixel map. The value (0, 0) indicates that the pixels are decoded\n         * based on the original image size.\n         *\n         * @type { ?Size }\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @since 7\n         */\n        /**\n         * Width and height of the image pixel map. The value (0, 0) indicates that the pixels are decoded\n         * based on the original image size.\n         *\n         * @type { ?Size }\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Width and height of the image pixel map. The value (0, 0) indicates that the pixels are decoded\n         * based on the original image size.\n         *\n         * @type { ?Size }\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Width and height of the image pixel map. The value (0, 0) indicates that the pixels are decoded\n         * based on the original image size.\n         *\n         * @type { ?Size }\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        desiredSize?: Size;\n        /**\n         * Cropping region of the image pixel map.\n         *\n         * @type { ?Region }\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @since 7\n         */\n        /**\n         * Cropping region of the image pixel map.\n         *\n         * @type { ?Region }\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Cropping region of the image pixel map.\n         *\n         * @type { ?Region }\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Cropping region of the image pixel map.\n         *\n         * @type { ?Region }\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        desiredRegion?: Region;\n        /**\n         * Data format of the image pixel map.\n         *\n         * @type { ?PixelMapFormat }\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @since 7\n         */\n        /**\n         * Data format of the image pixel map.\n         *\n         * @type { ?PixelMapFormat }\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Data format of the image pixel map.\n         *\n         * @type { ?PixelMapFormat }\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Data format of the image pixel map.\n         *\n         * @type { ?PixelMapFormat }\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        desiredPixelFormat?: PixelMapFormat;\n        /**\n         * The density for image pixel map.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @since 9\n         */\n        /**\n         * The density for image pixel map.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * The density for image pixel map.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * The density for image pixel map.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        fitDensity?: number;\n        /**\n         * Color space of the image pixel map.\n         *\n         * @type { ?colorSpaceManager.ColorSpaceManager }\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 11\n         */\n        desiredColorSpace?: colorSpaceManager.ColorSpaceManager;\n        /**\n         * The desired dynamic range of the image pixelmap.\n         *\n         * @type { ?DecodingDynamicRange }\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @since 12\n         */\n        desiredDynamicRange?: DecodingDynamicRange;\n        /**\n         * Describes the strategy for executing the cropping and scaling operations when both desiredSize and desiredRegion are specified.\n         *\n         * @type { ?CropAndScaleStrategy }\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @since 18\n         */\n        cropAndScaleStrategy?: CropAndScaleStrategy;\n    }\n    /**\n     * Describes image color components.\n     *\n     * @typedef Component\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @since 9\n     */\n    interface Component {\n        /**\n         * Component type.\n         *\n         * @type { ComponentType }\n         * @readonly\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        readonly componentType: ComponentType;\n        /**\n         * Row stride.\n         *\n         * @type { number }\n         * @readonly\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        readonly rowStride: number;\n        /**\n         * Pixel stride.\n         *\n         * @type { number }\n         * @readonly\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        readonly pixelStride: number;\n        /**\n         * Component buffer.\n         *\n         * @type { ArrayBuffer }\n         * @readonly\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        readonly byteBuffer: ArrayBuffer;\n    }\n    /**\n     * Initialization options for pixelmap.\n     *\n     * @typedef InitializationOptions\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @since 8\n     */\n    /**\n     * Initialization options for pixelmap.\n     *\n     * @typedef InitializationOptions\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Initialization options for pixelmap.\n     *\n     * @typedef InitializationOptions\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Initialization options for pixelmap.\n     *\n     * @typedef InitializationOptions\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 12\n     */\n    interface InitializationOptions {\n        /**\n         * PixelMap size.\n         *\n         * @type { Size }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 8\n         */\n        /**\n         * PixelMap size.\n         *\n         * @type { Size }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * PixelMap size.\n         *\n         * @type { Size }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * PixelMap size.\n         *\n         * @type { Size }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        size: Size;\n        /**\n         * PixelMap source format.\n         *\n         * @type { ?PixelMapFormat }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 12\n         */\n        srcPixelFormat?: PixelMapFormat;\n        /**\n         * PixelMap expected format.\n         *\n         * @type { ?PixelMapFormat }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 8\n         */\n        /**\n         * PixelMap expected format.\n         *\n         * @type { ?PixelMapFormat }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * PixelMap expected format.\n         *\n         * @type { ?PixelMapFormat }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * PixelMap expected format.\n         *\n         * @type { ?PixelMapFormat }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        pixelFormat?: PixelMapFormat;\n        /**\n         * Editable or not.\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 8\n         */\n        /**\n         * Editable or not.\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Editable or not.\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Editable or not.\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        editable?: boolean;\n        /**\n         * PixelMap expected alpha type.\n         *\n         * @type { ?AlphaType }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        /**\n         * PixelMap expected alpha type.\n         *\n         * @type { ?AlphaType }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * PixelMap expected alpha type.\n         *\n         * @type { ?AlphaType }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * PixelMap expected alpha type.\n         *\n         * @type { ?AlphaType }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        alphaType?: AlphaType;\n        /**\n         * PixelMap expected scaling effect.\n         *\n         * @type { ?ScaleMode }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        /**\n         * PixelMap expected scaling effect.\n         *\n         * @type { ?ScaleMode }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * PixelMap expected scaling effect.\n         *\n         * @type { ?ScaleMode }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * PixelMap expected scaling effect.\n         *\n         * @type { ?ScaleMode }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        scaleMode?: ScaleMode;\n    }\n    /**\n     * Initialization options for ImageSource.\n     *\n     * @typedef SourceOptions\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @since 9\n     */\n    /**\n     * Initialization options for ImageSource.\n     *\n     * @typedef SourceOptions\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Initialization options for ImageSource.\n     *\n     * @typedef SourceOptions\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Initialization options for ImageSource.\n     *\n     * @typedef SourceOptions\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 12\n     */\n    interface SourceOptions {\n        /**\n         * The density for ImageSource.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        /**\n         * The density for ImageSource.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * The density for ImageSource.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * The density for ImageSource.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        sourceDensity: number;\n        /**\n         * PixelMap expected format.\n         *\n         * @type { ?PixelMapFormat }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        /**\n         * PixelMap expected format.\n         *\n         * @type { ?PixelMapFormat }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * PixelMap expected format.\n         *\n         * @type { ?PixelMapFormat }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * PixelMap expected format.\n         *\n         * @type { ?PixelMapFormat }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        sourcePixelFormat?: PixelMapFormat;\n        /**\n         * PixelMap size.\n         *\n         * @type { ?Size }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        /**\n         * PixelMap size.\n         *\n         * @type { ?Size }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * PixelMap size.\n         *\n         * @type { ?Size }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * PixelMap size.\n         *\n         * @type { ?Size }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        sourceSize?: Size;\n    }\n    /**\n     * Value for HDR_STATIC_METADATA.\n     *\n     * @typedef HdrStaticMetadata\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @since 12\n     */\n    interface HdrStaticMetadata {\n        /**\n         * The X-coordinate of the primary colors. Specifies the normalized X-coordinates of the display device's three\n         * primary colors. The values are stored in an array of length 3, in the order of red, green, and blue (r, g, b).\n         * Each value is represented in units of 0.00002 and must fall within the range [0.0, 1.0].\n         *\n         * @type { Array<number> }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 12\n         */\n        displayPrimariesX: Array<number>;\n        /**\n         * The Y-coordinate of the primary colors. Specifies the normalized Y-coordinates of the display device's three\n         * primary colors. The values are stored in an array of length 3, in the order of red, green, and blue (r, g, b).\n         * Each value is represented in units of 0.00002 and must fall within the range [0.0, 1.0].\n         *\n         * @type { Array<number> }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 12\n         */\n        displayPrimariesY: Array<number>;\n        /**\n         * The X-coordinate of the white point value. Specifies the normalized X-coordinate of the white point.\n         * The value is represented in units of 0.00002 and must fall within the range [0.0, 1.0].\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 12\n         */\n        whitePointX: number;\n        /**\n         * The Y-coordinate of the white point value. Specifies the normalized Y-coordinate of the white point.\n         * The value is represented in units of 0.00002 and must fall within the range [0.0, 1.0].\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 12\n         */\n        whitePointY: number;\n        /**\n         * Maximum luminance of the image's primary display.\n         * The value is measured in units of 1, with a maximum allowed value of 65,535.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 12\n         */\n        maxLuminance: number;\n        /**\n         * Minimum luminance of the image's primary display.\n         * The value is measured in units of 0.0001, with a maximum allowed value of 6.55535.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 12\n         */\n        minLuminance: number;\n        /**\n         * Maximum brightness of displayed content.\n         * The value is measured in units of 1, with a maximum allowed value of 65,535.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 12\n         */\n        maxContentLightLevel: number;\n        /**\n         * Maximum average brightness of displayed content.\n         * The value is measured in units of 1, with a maximum allowed value of 65,535.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 12\n         */\n        maxFrameAverageLightLevel: number;\n    }\n    /**\n     * The per-component metadata.\n     *\n     * @typedef GainmapChannel\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @since 12\n     */\n    interface GainmapChannel {\n        /**\n         * The per-component max gain map values.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 12\n         */\n        gainmapMax: number;\n        /**\n         * The per-component min gain map values.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 12\n         */\n        gainmapMin: number;\n        /**\n         * The per-component gamma values.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 12\n         */\n        gamma: number;\n        /**\n         * The per-component baseline offset.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 12\n         */\n        baseOffset: number;\n        /**\n         * The per-component alternate offset.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 12\n         */\n        alternateOffset: number;\n    }\n    /**\n     * Values for HDR_GAINMAP_METADATA.\n     *\n     * @typedef HdrGainmapMetadata\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @since 12\n     */\n    interface HdrGainmapMetadata {\n        /**\n         * The version used by the writer.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 12\n         */\n        writerVersion: number;\n        /**\n         * The minimum version a parser needs to understand.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 12\n         */\n        miniVersion: number;\n        /**\n         * The number of gain map channels, with a value of 1 or 3.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 12\n         */\n        gainmapChannelCount: number;\n        /**\n         * Indicate whether to use the color space of the base image.\n         *\n         * @type { boolean }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 12\n         */\n        useBaseColorFlag: boolean;\n        /**\n         * The baseline hdr headroom.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 12\n         */\n        baseHeadroom: number;\n        /**\n         * The alternate hdr headroom.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 12\n         */\n        alternateHeadroom: number;\n        /**\n         * The per-channel metadata.\n         *\n         * @type { Array<GainmapChannel> }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 12\n         */\n        channels: Array<GainmapChannel>;\n    }\n    /**\n     * Defines the hdr metadata value.\n     *\n     * @typedef {HdrMetadataType | HdrStaticMetadata | ArrayBuffer | HdrGainmapMetadata} HdrMetadataValue\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @since 12\n     */\n    type HdrMetadataValue = HdrMetadataType | HdrStaticMetadata | ArrayBuffer | HdrGainmapMetadata;\n    /**\n     * Create pixelmap by data buffer.\n     *\n     * @param { ArrayBuffer } colors The image color buffer.\n     * @param { InitializationOptions } options Initialization options for pixelmap.\n     * @param { AsyncCallback<PixelMap> } callback Callback used to return the PixelMap object.\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @since 8\n     */\n    /**\n     * Create pixelmap by data buffer.\n     *\n     * @param { ArrayBuffer } colors The image color buffer.\n     * @param { InitializationOptions } options Initialization options for pixelmap.\n     * @param { AsyncCallback<PixelMap> } callback Callback used to return the PixelMap object.\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @crossplatform\n     * @since 10\n     */\n    function createPixelMap(colors: ArrayBuffer, options: InitializationOptions, callback: AsyncCallback<PixelMap>): void;\n    /**\n     * Create pixelmap by data buffer.\n     *\n     * @param { ArrayBuffer } colors The image color buffer.\n     * @param { InitializationOptions } options Initialization options for pixelmap.\n     * @returns { Promise<PixelMap> } A Promise instance used to return the PixelMap object.\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @since 8\n     */\n    /**\n     * Create pixelmap by data buffer.\n     *\n     * @param { ArrayBuffer } colors The image color buffer.\n     * @param { InitializationOptions } options Initialization options for pixelmap.\n     * @returns { Promise<PixelMap> } A Promise instance used to return the PixelMap object.\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @crossplatform\n     * @since 10\n     */\n    function createPixelMap(colors: ArrayBuffer, options: InitializationOptions): Promise<PixelMap>;\n    /**\n     * Create pixelmap by data buffer.\n     *\n     * @param { ArrayBuffer } colors The image color buffer.\n     * @param { InitializationOptions } options Initialization options for pixelmap.\n     * @returns { PixelMap } Returns the instance if the operation is successful;Otherwise, return undefined.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.\n     * 2.Incorrect parameter types. 3.Parameter verification failed.\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @crossplatform\n     * @since 12\n     */\n    function createPixelMapSync(colors: ArrayBuffer, options: InitializationOptions): PixelMap;\n    /**\n     * Create an empty pixelmap.\n     *\n     * @param { InitializationOptions } options Initialization options for pixelmap.\n     * @returns { PixelMap } Returns the instance if the operation is successful;Otherwise, return undefined.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.\n     * 2.Incorrect parameter types. 3.Parameter verification failed.\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @crossplatform\n     * @since 12\n     */\n    function createPixelMapSync(options: InitializationOptions): PixelMap;\n    /**\n     * Transforms pixelmap from unpremultiplied alpha format to premultiplied alpha format.\n     *\n     * @param { PixelMap } src The source pixelmap.\n     * @param { PixelMap } dst The destination pixelmap.\n     * @param { AsyncCallback<void> } callback Callback used to return the operation result.\n     * If the operation fails, an error message is returned.\n     * @throws { BusinessError } 62980103 - The image data is not supported.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.\n     * 2.Incorrect parameter types. 3.Parameter verification failed.\n     * @throws { BusinessError } 62980246 - Failed to read the pixelMap.\n     * @throws { BusinessError } 62980248 - Pixelmap not allow modify.\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @crossplatform\n     * @since 12\n     */\n    function createPremultipliedPixelMap(src: PixelMap, dst: PixelMap, callback: AsyncCallback<void>): void;\n    /**\n     * Transforms pixelmap from premultiplied alpha format to unpremultiplied alpha format.\n     *\n     * @param { PixelMap } src The source pixelMap.\n     * @param { PixelMap } dst The destination pixelmap.\n     * @returns { Promise<void> } A Promise instance used to return the operation result.\n     * If the operation fails, an error message is returned.\n     * @throws { BusinessError } 62980103 - The image data is not supported.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.\n     * 2.Incorrect parameter types. 3.Parameter verification failed.\n     * @throws { BusinessError } 62980246 - Failed to read the pixelMap.\n     * @throws { BusinessError } 62980248 - Pixelmap not allow modify.\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @crossplatform\n     * @since 12\n     */\n    function createPremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise<void>;\n    /**\n     * Transforms pixelmap from premultiplied alpha format to unpremultiplied alpha format.\n     *\n     * @param { PixelMap } src The source pixelmap.\n     * @param { PixelMap } dst The destination pixelmap.\n     * @param { AsyncCallback<void> } callback Callback used to return the operation result.\n     * If the operation fails, an error message is returned.\n     * @throws { BusinessError } 62980103 - The image data is not supported.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.\n     * 2.Incorrect parameter types. 3.Parameter verification failed.\n     * @throws { BusinessError } 62980246 - Failed to read the pixelMap.\n     * @throws { BusinessError } 62980248 - Pixelmap not allow modify.\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @crossplatform\n     * @since 12\n     */\n    function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap, callback: AsyncCallback<void>): void;\n    /**\n     * Transforms pixelmap from premultiplied alpha format to unpremultiplied alpha format.\n     *\n     * @param { PixelMap } src The source pixelmap.\n     * @param { PixelMap } dst The destination pixelmap.\n     * @returns { Promise<void> } A Promise instance used to return the operation result.\n     * If the operation fails, an error message is returned.\n     * @throws { BusinessError } 62980103 - The image data is not supported.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.\n     * 2.Incorrect parameter types. 3.Parameter verification failed.\n     * @throws { BusinessError } 62980246 - Failed to read the pixelMap.\n     * @throws { BusinessError } 62980248 - Pixelmap not allow modify.\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @crossplatform\n     * @since 12\n     */\n    function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise<void>;\n    /**\n     * Creates a PixelMap object based on MessageSequence parameter.\n     *\n     * @param { rpc.MessageSequence } sequence - rpc.MessageSequence parameter.\n     * @returns { PixelMap } Returns the instance if the operation is successful;Otherwise, an exception will be thrown.\n     * @throws { BusinessError } 62980096 - The operation failed. Possible cause: 1.Image upload exception.\n     * 2. Decoding process exception. 3. Insufficient memory.\n     * @throws { BusinessError } 62980097 - IPC error. Possible cause: 1.IPC communication failed. 2. Image upload exception.\n     * 3. Decode process exception. 4. Insufficient memory.\n     * @throws { BusinessError } 62980115 - Invalid input parameter.\n     * @throws { BusinessError } 62980105 - Failed to get the data.\n     * @throws { BusinessError } 62980177 - Abnormal API environment.\n     * @throws { BusinessError } 62980178 - Failed to create the PixelMap.\n     * @throws { BusinessError } 62980179 - Abnormal buffer size.\n     * @throws { BusinessError } 62980180 - FD mapping failed.\n     * Possible cause: 1. Size and address does not match. 2. Memory map in memalloc failed.\n     * @throws { BusinessError } 62980246 - Failed to read the PixelMap.\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @since 11\n     */\n    function createPixelMapFromParcel(sequence: rpc.MessageSequence): PixelMap;\n    /**\n     * Creates a PixelMap object from surface id.\n     *\n     * @param { string } surfaceId - surface id.\n     * @param { Region } region - The region to surface.\n     * @returns { Promise<PixelMap> } Returns the instance if the operation is successful;Otherwise, an exception will be thrown.\n     * @throws { BusinessError } 62980115 - If the image parameter invalid.\n     * @throws { BusinessError } 62980105 - Failed to get the data.\n     * @throws { BusinessError } 62980178 - Failed to create the PixelMap.\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @since 11\n     */\n    function createPixelMapFromSurface(surfaceId: string, region: Region): Promise<PixelMap>;\n    /**\n     * Creates a PixelMap object from surface id.\n     *\n     * @param { string } surfaceId - surface id.\n     * @param { Region } region - The region to surface.\n     * @returns { PixelMap } Returns the instance if the operation is successful;Otherwise, an exception will be thrown.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.\n     *     2.Incorrect parameter types. 3.Parameter verification failed.\n     * @throws { BusinessError } 62980105 - Failed to get the data.\n     * @throws { BusinessError } 62980178 - Failed to create the PixelMap.\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @since 12\n     */\n    function createPixelMapFromSurfaceSync(surfaceId: string, region: Region): PixelMap;\n    /**\n     * Creates a PixelMap object from surface id.\n     *\n     * @param { string } surfaceId - surface id.\n     * @returns { Promise<PixelMap> } Returns the instance if the operation is successful;Otherwise, an exception will be thrown.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.\n     *     2.Incorrect parameter types. 3.Parameter verification failed.\n     * @throws { BusinessError } 62980105 - Failed to get the data.\n     * @throws { BusinessError } 62980178 - Failed to create the PixelMap.\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @since 15\n     */\n    function createPixelMapFromSurface(surfaceId: string): Promise<PixelMap>;\n    /**\n     * Creates a PixelMap object from surface id.\n     *\n     * @param { string } surfaceId - surface id.\n     * @returns { PixelMap } Returns the instance if the operation is successful;Otherwise, an exception will be thrown.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.\n     *     2.Incorrect parameter types. 3.Parameter verification failed.\n     * @throws { BusinessError } 62980105 - Failed to get the data.\n     * @throws { BusinessError } 62980178 - Failed to create the PixelMap.\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @since 15\n     */\n    function createPixelMapFromSurfaceSync(surfaceId: string): PixelMap;\n    /**\n     * Creates an ImageSource instance based on the URI.\n     *\n     * @param { string } uri Image source URI.\n     * @returns { ImageSource } returns the ImageSource instance if the operation is successful; returns undefined otherwise.\n     * @syscap SystemCapability.Multimedia.Image.ImageSource\n     * @since 6\n     */\n    /**\n     * Creates an ImageSource instance based on the URI.\n     *\n     * @param { string } uri Image source URI.\n     * @returns { ImageSource } returns the ImageSource instance if the operation is successful; returns undefined otherwise.\n     * @syscap SystemCapability.Multimedia.Image.ImageSource\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Creates an ImageSource instance based on the URI.\n     *\n     * @param { string } uri Image source URI.\n     * @returns { ImageSource } returns the ImageSource instance if the operation is successful; returns undefined otherwise.\n     * @syscap SystemCapability.Multimedia.Image.ImageSource\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    function createImageSource(uri: string): ImageSource;\n    /**\n     * Creates an ImageSource instance based on the URI.\n     *\n     * @param { string } uri Image source URI.\n     * @param { SourceOptions } options The config of Image source.\n     * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns undefined otherwise.\n     * @syscap SystemCapability.Multimedia.Image.ImageSource\n     * @since 9\n     */\n    /**\n     * Creates an ImageSource instance based on the URI.\n     *\n     * @param { string } uri Image source URI.\n     * @param { SourceOptions } options The config of Image source.\n     * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns undefined otherwise.\n     * @syscap SystemCapability.Multimedia.Image.ImageSource\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Creates an ImageSource instance based on the URI.\n     *\n     * @param { string } uri Image source URI.\n     * @param { SourceOptions } options The config of Image source.\n     * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns undefined otherwise.\n     * @syscap SystemCapability.Multimedia.Image.ImageSource\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Creates an ImageSource instance based on the URI.\n     *\n     * @param { string } uri Image source URI.\n     * @param { SourceOptions } options The config of Image source.\n     * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns undefined otherwise.\n     * @syscap SystemCapability.Multimedia.Image.ImageSource\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 12\n     */\n    function createImageSource(uri: string, options: SourceOptions): ImageSource;\n    /**\n     * Creates an ImageSource instance based on the file descriptor.\n     *\n     * @param { number } fd ID of a file descriptor.\n     * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns undefined otherwise.\n     * @syscap SystemCapability.Multimedia.Image.ImageSource\n     * @since 7\n     */\n    /**\n     * Creates an ImageSource instance based on the file descriptor.\n     *\n     * @param { number } fd ID of a file descriptor.\n     * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns undefined otherwise.\n     * @syscap SystemCapability.Multimedia.Image.ImageSource\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Creates an ImageSource instance based on the file descriptor.\n     *\n     * @param { number } fd ID of a file descriptor.\n     * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns undefined otherwise.\n     * @syscap SystemCapability.Multimedia.Image.ImageSource\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    function createImageSource(fd: number): ImageSource;\n    /**\n     * Creates an ImageSource instance based on the file descriptor.\n     *\n     * @param { number } fd ID of a file descriptor.\n     * @param { SourceOptions } options The config of Image source.\n     * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns undefined otherwise.\n     * @syscap SystemCapability.Multimedia.Image.ImageSource\n     * @since 9\n     */\n    /**\n     * Creates an ImageSource instance based on the file descriptor.\n     *\n     * @param { number } fd ID of a file descriptor.\n     * @param { SourceOptions } options The config of Image source.\n     * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns undefined otherwise.\n     * @syscap SystemCapability.Multimedia.Image.ImageSource\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Creates an ImageSource instance based on the file descriptor.\n     *\n     * @param { number } fd ID of a file descriptor.\n     * @param { SourceOptions } options The config of Image source.\n     * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns undefined otherwise.\n     * @syscap SystemCapability.Multimedia.Image.ImageSource\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Creates an ImageSource instance based on the file descriptor.\n     *\n     * @param { number } fd ID of a file descriptor.\n     * @param { SourceOptions } options The config of Image source.\n     * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns undefined otherwise.\n     * @syscap SystemCapability.Multimedia.Image.ImageSource\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 12\n     */\n    function createImageSource(fd: number, options: SourceOptions): ImageSource;\n    /**\n     * Creates an ImageSource instance based on the buffer.\n     *\n     * @param { ArrayBuffer } buf The buffer of the image.\n     * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns undefined otherwise.\n     * @syscap SystemCapability.Multimedia.Image.ImageSource\n     * @since 9\n     */\n    /**\n     * Creates an ImageSource instance based on the buffer.\n     *\n     * @param { ArrayBuffer } buf The buffer of the image.\n     * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns undefined otherwise.\n     * @syscap SystemCapability.Multimedia.Image.ImageSource\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Creates an ImageSource instance based on the buffer.\n     *\n     * @param { ArrayBuffer } buf The buffer of the image.\n     * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns undefined otherwise.\n     * @syscap SystemCapability.Multimedia.Image.ImageSource\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Creates an ImageSource instance based on the buffer.\n     *\n     * @param { ArrayBuffer } buf The buffer of the image.\n     * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns undefined otherwise.\n     * @syscap SystemCapability.Multimedia.Image.ImageSource\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 12\n     */\n    function createImageSource(buf: ArrayBuffer): ImageSource;\n    /**\n     * Creates an ImageSource instance based on the buffer.\n     *\n     * @param { ArrayBuffer } buf The buffer of the image.\n     * @param { SourceOptions } options The config of Image source.\n     * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns undefined otherwise.\n     * @syscap SystemCapability.Multimedia.Image.ImageSource\n     * @since 9\n     */\n    /**\n     * Creates an ImageSource instance based on the buffer.\n     *\n     * @param { ArrayBuffer } buf The buffer of the image.\n     * @param { SourceOptions } options The config of Image source.\n     * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns undefined otherwise.\n     * @syscap SystemCapability.Multimedia.Image.ImageSource\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Creates an ImageSource instance based on the buffer.\n     *\n     * @param { ArrayBuffer } buf The buffer of the image.\n     * @param { SourceOptions } options The config of Image source.\n     * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns undefined otherwise.\n     * @syscap SystemCapability.Multimedia.Image.ImageSource\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Creates an ImageSource instance based on the buffer.\n     *\n     * @param { ArrayBuffer } buf The buffer of the image.\n     * @param { SourceOptions } options The config of Image source.\n     * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns undefined otherwise.\n     * @syscap SystemCapability.Multimedia.Image.ImageSource\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 12\n     */\n    function createImageSource(buf: ArrayBuffer, options: SourceOptions): ImageSource;\n    /**\n     * Creates an ImageSource instance based on the raw file descriptor.\n     *\n     * @param { resourceManager.RawFileDescriptor } rawfile The raw file descriptor of the image.\n     * @param { SourceOptions } options The config of Image source.\n     * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns undefined otherwise.\n     * @syscap SystemCapability.Multimedia.Image.ImageSource\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    function createImageSource(rawfile: resourceManager.RawFileDescriptor, options?: SourceOptions): ImageSource;\n    /**\n     * Creates an ImageSource instance based on the buffer in incremental.\n     *\n     * @param { ArrayBuffer } buf The buffer of the image.\n     * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns undefined otherwise.\n     * @syscap SystemCapability.Multimedia.Image.ImageSource\n     * @since 9\n     */\n    /**\n     * Creates an ImageSource instance based on the buffer in incremental.\n     *\n     * @param { ArrayBuffer } buf The buffer of the image.\n     * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns undefined otherwise.\n     * @syscap SystemCapability.Multimedia.Image.ImageSource\n     * @crossplatform\n     * @since 10\n     */\n    function CreateIncrementalSource(buf: ArrayBuffer): ImageSource;\n    /**\n     * Creates an ImageSource instance based on the buffer in incremental.\n     *\n     * @param { ArrayBuffer } buf The buffer of the image.\n     * @param { SourceOptions } options The config of source.\n     * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns undefined otherwise.\n     * @syscap SystemCapability.Multimedia.Image.ImageSource\n     * @since 9\n     */\n    /**\n     * Creates an ImageSource instance based on the buffer in incremental.\n     *\n     * @param { ArrayBuffer } buf The buffer of the image.\n     * @param { SourceOptions } options The config of source.\n     * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns undefined otherwise.\n     * @syscap SystemCapability.Multimedia.Image.ImageSource\n     * @crossplatform\n     * @since 10\n     */\n    function CreateIncrementalSource(buf: ArrayBuffer, options?: SourceOptions): ImageSource;\n    /**\n     * Creates an ImagePacker instance.\n     *\n     * @returns { ImagePacker } Returns the ImagePacker instance if the operation is successful; returns null otherwise.\n     * @syscap SystemCapability.Multimedia.Image.ImagePacker\n     * @since 6\n     */\n    /**\n     * Creates an ImagePacker instance.\n     *\n     * @returns { ImagePacker } Returns the ImagePacker instance if the operation is successful; returns null otherwise.\n     * @syscap SystemCapability.Multimedia.Image.ImagePacker\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Creates an ImagePacker instance.\n     *\n     * @returns { ImagePacker } Returns the ImagePacker instance if the operation is successful; returns null otherwise.\n     * @syscap SystemCapability.Multimedia.Image.ImagePacker\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    function createImagePacker(): ImagePacker;\n    /**\n     * Creates an ImageReceiver instance.\n     *\n     * @param { number } width The default width in pixels of the Images that this receiver will produce.\n     * @param { number } height The default height in pixels of the Images that this receiver will produce.\n     * @param { number } format The format of the Image that this receiver will produce. This must be one of the\n     *            {@link ImageFormat} constants.\n     * @param { number } capacity The maximum number of images the user will want to access simultaneously.\n     * @returns { ImageReceiver } Returns the ImageReceiver instance if the operation is successful; returns null otherwise.\n     * @syscap SystemCapability.Multimedia.Image.ImageReceiver\n     * @since 9\n     * @deprecated since 11\n     * @useinstead image#createImageReceiver\n     */\n    function createImageReceiver(width: number, height: number, format: number, capacity: number): ImageReceiver;\n    /**\n     * Creates an ImageReceiver instance.\n     *\n     * @param { Size } size - The default {@link Size} in pixels of the Images that this receiver will produce.\n     * @param { ImageFormat } format - The format of the Image that this receiver will produce. This must be one of the\n     *            {@link ImageFormat} constants.\n     * @param { number } capacity - The maximum number of images the user will want to access simultaneously.\n     * @returns { ImageReceiver } Returns the ImageReceiver instance if the operation is successful; returns null otherwise.\n     * @throws { BusinessError } 401 - Parameter error.Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types;\n     * @syscap SystemCapability.Multimedia.Image.ImageReceiver\n     * @since 11\n     */\n    function createImageReceiver(size: Size, format: ImageFormat, capacity: number): ImageReceiver;\n    /**\n     * Creates an ImageCreator instance.\n     *\n     * @param { number } width The default width in pixels of the Images that this creator will produce.\n     * @param { number } height The default height in pixels of the Images that this creator will produce.\n     * @param { number } format The format of the Image that this creator will produce. This must be one of the\n     *            {@link ImageFormat} constants.\n     * @param { number } capacity The maximum number of images the user will want to access simultaneously.\n     * @returns { ImageCreator } Returns the ImageCreator instance if the operation is successful; returns null otherwise.\n     * @syscap SystemCapability.Multimedia.Image.ImageCreator\n     * @since 9\n     * @deprecated since 11\n     * @useinstead image#createImageCreator\n     */\n    function createImageCreator(width: number, height: number, format: number, capacity: number): ImageCreator;\n    /**\n     * Creates an ImageCreator instance.\n     *\n     * @param { Size } size - The default {@link Size} in pixels of the Images that this creator will produce.\n     * @param { ImageFormat } format - The format of the Image that this creator will produce. This must be one of the\n     *            {@link ImageFormat} constants.\n     * @param { number } capacity - The maximum number of images the user will want to access simultaneously.\n     * @returns { ImageCreator } Returns the ImageCreator instance if the operation is successful; returns null otherwise.\n     * @throws { BusinessError } 401 - Parameter error.Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types;\n     * @syscap SystemCapability.Multimedia.Image.ImageCreator\n     * @since 11\n     */\n    function createImageCreator(size: Size, format: ImageFormat, capacity: number): ImageCreator;\n    /**\n     * PixelMap instance.\n     *\n     * @typedef PixelMap\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @since 7\n     */\n    /**\n     * PixelMap instance.\n     *\n     * @typedef PixelMap\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * PixelMap instance.\n     *\n     * @typedef PixelMap\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * PixelMap instance.\n     *\n     * @typedef PixelMap\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 12\n     */\n    interface PixelMap {\n        /**\n         * Whether the image pixel map can be edited.\n         *\n         * @type { boolean }\n         * @readonly\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 7\n         */\n        /**\n         * Whether the image pixel map can be edited.\n         *\n         * @type { boolean }\n         * @readonly\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Whether the image pixel map can be edited.\n         *\n         * @type { boolean }\n         * @readonly\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Whether the image pixel map can be edited.\n         *\n         * @type { boolean }\n         * @readonly\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        readonly isEditable: boolean;\n        /**\n         * Reads image pixel map data and writes the data to an ArrayBuffer. This method uses\n         * a promise to return the result.\n         *\n         * @param { ArrayBuffer } dst A buffer to which the image pixel map data will be written.\n         * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 7\n         */\n        /**\n         * Reads image pixel map data and writes the data to an ArrayBuffer. This method uses\n         * a promise to return the result.\n         *\n         * @param { ArrayBuffer } dst A buffer to which the image pixel map data will be written.\n         * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Reads image pixel map data and writes the data to an ArrayBuffer. This method uses\n         * a promise to return the result.\n         *\n         * @param { ArrayBuffer } dst A buffer to which the image pixel map data will be written.\n         * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Reads image pixel map data and writes the data to an ArrayBuffer. This method uses\n         * a promise to return the result.\n         *\n         * @param { ArrayBuffer } dst A buffer to which the image pixel map data will be written.\n         * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        readPixelsToBuffer(dst: ArrayBuffer): Promise<void>;\n        /**\n         * Reads image pixel map data and writes the data to an ArrayBuffer. This method uses\n         * a callback to return the result.\n         *\n         * @param { ArrayBuffer } dst A buffer to which the image pixel map data will be written.\n         * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 7\n         */\n        /**\n         * Reads image pixel map data and writes the data to an ArrayBuffer. This method uses\n         * a callback to return the result.\n         *\n         * @param { ArrayBuffer } dst A buffer to which the image pixel map data will be written.\n         * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Reads image pixel map data and writes the data to an ArrayBuffer. This method uses\n         * a callback to return the result.\n         *\n         * @param { ArrayBuffer } dst A buffer to which the image pixel map data will be written.\n         * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Reads image pixel map data and writes the data to an ArrayBuffer. This method uses\n         * a callback to return the result.\n         *\n         * @param { ArrayBuffer } dst A buffer to which the image pixel map data will be written.\n         * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        readPixelsToBuffer(dst: ArrayBuffer, callback: AsyncCallback<void>): void;\n        /**\n         * Reads image pixel map data and writes the data to an ArrayBuffer.\n         *\n         * @param { ArrayBuffer } dst A buffer to which the image pixel map data will be written.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.\n         * 2.Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 501 - Resource Unavailable.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        readPixelsToBufferSync(dst: ArrayBuffer): void;\n        /**\n         * Reads image pixel map data in an area. This method uses a promise to return the data read.\n         *\n         * @param { PositionArea } area Area from which the image pixel map data will be read.\n         * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 7\n         */\n        /**\n         * Reads image pixel map data in an area. This method uses a promise to return the data read.\n         *\n         * @param { PositionArea } area Area from which the image pixel map data will be read.\n         * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Reads image pixel map data in an area. This method uses a promise to return the data read.\n         *\n         * @param { PositionArea } area Area from which the image pixel map data will be read.\n         * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Reads image pixel map data in an area. This method uses a promise to return the data read.\n         *\n         * @param { PositionArea } area Area from which the image pixel map data will be read.\n         * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        readPixels(area: PositionArea): Promise<void>;\n        /**\n         * Reads image pixel map data in an area. This method uses a callback to return the data read.\n         *\n         * @param { PositionArea } area Area from which the image pixel map data will be read.\n         * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 7\n         */\n        /**\n         * Reads image pixel map data in an area. This method uses a callback to return the data read.\n         *\n         * @param { PositionArea } area Area from which the image pixel map data will be read.\n         * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Reads image pixel map data in an area. This method uses a callback to return the data read.\n         *\n         * @param { PositionArea } area Area from which the image pixel map data will be read.\n         * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Reads image pixel map data in an area. This method uses a callback to return the data read.\n         *\n         * @param { PositionArea } area Area from which the image pixel map data will be read.\n         * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        readPixels(area: PositionArea, callback: AsyncCallback<void>): void;\n        /**\n         * Reads image pixel map data in an area.\n         *\n         * @param { PositionArea } area Area from which the image pixel map data will be read.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.\n         * 2.Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 501 - Resource Unavailable.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        readPixelsSync(area: PositionArea): void;\n        /**\n         * Writes image pixel map data to the specified area. This method uses a promise to return\n         * the operation result.\n         *\n         * @param { PositionArea } area Area to which the image pixel map data will be written.\n         * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 7\n         */\n        /**\n         * Writes image pixel map data to the specified area. This method uses a promise to return\n         * the operation result.\n         *\n         * @param { PositionArea } area Area to which the image pixel map data will be written.\n         * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Writes image pixel map data to the specified area. This method uses a promise to return\n         * the operation result.\n         *\n         * @param { PositionArea } area Area to which the image pixel map data will be written.\n         * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Writes image pixel map data to the specified area. This method uses a promise to return\n         * the operation result.\n         *\n         * @param { PositionArea } area Area to which the image pixel map data will be written.\n         * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        writePixels(area: PositionArea): Promise<void>;\n        /**\n         * Writes image pixel map data to the specified area. This method uses a callback to return\n         * the operation result.\n         *\n         * @param { PositionArea } area Area to which the image pixel map data will be written.\n         * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 7\n         */\n        /**\n         * Writes image pixel map data to the specified area. This method uses a callback to return\n         * the operation result.\n         *\n         * @param { PositionArea } area Area to which the image pixel map data will be written.\n         * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Writes image pixel map data to the specified area. This method uses a callback to return\n         * the operation result.\n         *\n         * @param { PositionArea } area Area to which the image pixel map data will be written.\n         * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Writes image pixel map data to the specified area. This method uses a callback to return\n         * the operation result.\n         *\n         * @param { PositionArea } area Area to which the image pixel map data will be written.\n         * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        writePixels(area: PositionArea, callback: AsyncCallback<void>): void;\n        /**\n         * Writes image pixel map data to the specified area.\n         *\n         * @param { PositionArea } area Area to which the image pixel map data will be written.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.\n         * 2.Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 501 - Resource Unavailable.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        writePixelsSync(area: PositionArea): void;\n        /**\n         * Reads image data in an ArrayBuffer and writes the data to a PixelMap object. This method\n         * uses a promise to return the result.\n         *\n         * @param { ArrayBuffer } src A buffer from which the image data will be read.\n         * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 7\n         */\n        /**\n         * Reads image data in an ArrayBuffer and writes the data to a PixelMap object. This method\n         * uses a promise to return the result.\n         *\n         * @param { ArrayBuffer } src A buffer from which the image data will be read.\n         * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Reads image data in an ArrayBuffer and writes the data to a PixelMap object. This method\n         * uses a promise to return the result.\n         *\n         * @param { ArrayBuffer } src A buffer from which the image data will be read.\n         * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Reads image data in an ArrayBuffer and writes the data to a PixelMap object. This method\n         * uses a promise to return the result.\n         *\n         * @param { ArrayBuffer } src A buffer from which the image data will be read.\n         * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        writeBufferToPixels(src: ArrayBuffer): Promise<void>;\n        /**\n         * Reads image data in an ArrayBuffer and writes the data to a PixelMap object. This method\n         * uses a callback to return the result.\n         *\n         * @param { ArrayBuffer } src A buffer from which the image data will be read.\n         * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 7\n         */\n        /**\n         * Reads image data in an ArrayBuffer and writes the data to a PixelMap object. This method\n         * uses a callback to return the result.\n         *\n         * @param { ArrayBuffer } src A buffer from which the image data will be read.\n         * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Reads image data in an ArrayBuffer and writes the data to a PixelMap object. This method\n         * uses a callback to return the result.\n         *\n         * @param { ArrayBuffer } src A buffer from which the image data will be read.\n         * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Reads image data in an ArrayBuffer and writes the data to a PixelMap object. This method\n         * uses a callback to return the result.\n         *\n         * @param { ArrayBuffer } src A buffer from which the image data will be read.\n         * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        writeBufferToPixels(src: ArrayBuffer, callback: AsyncCallback<void>): void;\n        /**\n         * Reads image data in an ArrayBuffer and writes the data to a PixelMap object.\n         *\n         * @param { ArrayBuffer } src A buffer from which the image data will be read.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.\n         * 2.Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 501 - Resource Unavailable.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        writeBufferToPixelsSync(src: ArrayBuffer): void;\n        /**\n         * Convert pixelmap to standard dynamic range.\n         *\n         * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.\n         * @throws { BusinessError } 62980137 - Invalid image operation.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 12\n         */\n        toSdr(): Promise<void>;\n        /**\n         * Obtains pixel map information about this image. This method uses a promise to return the information.\n         *\n         * @returns { Promise<ImageInfo> } A Promise instance used to return the image pixel map information. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 7\n         */\n        /**\n         * Obtains pixel map information about this image. This method uses a promise to return the information.\n         *\n         * @returns { Promise<ImageInfo> } A Promise instance used to return the image pixel map information. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains pixel map information about this image. This method uses a promise to return the information.\n         *\n         * @returns { Promise<ImageInfo> } A Promise instance used to return the image pixel map information. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Obtains pixel map information about this image. This method uses a promise to return the information.\n         *\n         * @returns { Promise<ImageInfo> } A Promise instance used to return the image pixel map information. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        getImageInfo(): Promise<ImageInfo>;\n        /**\n         * Obtains pixel map information about this image. This method uses a callback to return the information.\n         *\n         * @param { AsyncCallback<ImageInfo> } callback Callback used to return the image pixel map information.\n         * If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 7\n         */\n        /**\n         * Obtains pixel map information about this image. This method uses a callback to return the information.\n         *\n         * @param { AsyncCallback<ImageInfo> } callback Callback used to return the image pixel map information.\n         * If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains pixel map information about this image. This method uses a callback to return the information.\n         *\n         * @param { AsyncCallback<ImageInfo> } callback Callback used to return the image pixel map information.\n         * If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Obtains pixel map information about this image. This method uses a callback to return the information.\n         *\n         * @param { AsyncCallback<ImageInfo> } callback Callback used to return the image pixel map information.\n         * If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        getImageInfo(callback: AsyncCallback<ImageInfo>): void;\n        /**\n         * Get image information from image source.\n         *\n         * @returns { ImageInfo } the image information.\n         * @throws { BusinessError } 501 - Resource Unavailable.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        getImageInfoSync(): ImageInfo;\n        /**\n         * Obtains the number of bytes in each line of the image pixel map.\n         *\n         * @returns { number } Number of bytes in each line.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 7\n         */\n        /**\n         * Obtains the number of bytes in each line of the image pixel map.\n         *\n         * @returns { number } Number of bytes in each line.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the number of bytes in each line of the image pixel map.\n         *\n         * @returns { number } Number of bytes in each line.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Obtains the number of bytes in each line of the image pixel map.\n         *\n         * @returns { number } Number of bytes in each line.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        getBytesNumberPerRow(): number;\n        /**\n         * Obtains the total number of bytes of the image pixel map.\n         *\n         * @returns { number } Total number of bytes.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 7\n         */\n        /**\n         * Obtains the total number of bytes of the image pixel map.\n         *\n         * @returns { number } Total number of bytes.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the total number of bytes of the image pixel map.\n         *\n         * @returns { number } Total number of bytes.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Obtains the total number of bytes of the image pixel map.\n         *\n         * @returns { number } Total number of bytes.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        getPixelBytesNumber(): number;\n        /**\n         * Obtains the density of the image pixel map.\n         *\n         * @returns { number } The number of density.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        /**\n         * Obtains the density of the image pixel map.\n         *\n         * @returns { number } The number of density.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the density of the image pixel map.\n         *\n         * @returns { number } The number of density.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Obtains the density of the image pixel map.\n         *\n         * @returns { number } The number of density.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        getDensity(): number;\n        /**\n         * Set the transparent rate of pixel map. This method uses a callback to return the operation result.\n         *\n         * @param { number } rate The value of transparent rate.\n         * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        /**\n         * Set the transparent rate of pixel map. This method uses a callback to return the operation result.\n         *\n         * @param { number } rate The value of transparent rate.\n         * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Set the transparent rate of pixel map. This method uses a callback to return the operation result.\n         *\n         * @param { number } rate The value of transparent rate.\n         * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Set the transparent rate of pixel map. This method uses a callback to return the operation result.\n         *\n         * @param { number } rate The value of transparent rate.\n         * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        opacity(rate: number, callback: AsyncCallback<void>): void;\n        /**\n         * Set the transparent rate of pixel map. This method uses a promise to return the result.\n         *\n         * @param { number } rate The value of transparent rate.\n         * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        /**\n         * Set the transparent rate of pixel map. This method uses a promise to return the result.\n         *\n         * @param { number } rate The value of transparent rate.\n         * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Set the transparent rate of pixel map. This method uses a promise to return the result.\n         *\n         * @param { number } rate The value of transparent rate.\n         * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Set the transparent rate of pixel map. This method uses a promise to return the result.\n         *\n         * @param { number } rate The value of transparent rate.\n         * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        opacity(rate: number): Promise<void>;\n        /**\n         * Set the transparent rate of pixel map.\n         *\n         * @param { number } rate The value of transparent rate.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.\n         * 2.Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 501 - Resource Unavailable.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        opacitySync(rate: number): void;\n        /**\n         * Obtains new pixel map with alpha information. This method uses a promise to return the information.\n         *\n         * @returns { Promise<PixelMap> } A Promise instance used to return the new image pixel map. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        /**\n         * Obtains new pixel map with alpha information. This method uses a promise to return the information.\n         *\n         * @returns { Promise<PixelMap> } A Promise instance used to return the new image pixel map. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains new pixel map with alpha information. This method uses a promise to return the information.\n         *\n         * @returns { Promise<PixelMap> } A Promise instance used to return the new image pixel map. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Obtains new pixel map with alpha information. This method uses a promise to return the information.\n         *\n         * @returns { Promise<PixelMap> } A Promise instance used to return the new image pixel map. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        createAlphaPixelmap(): Promise<PixelMap>;\n        /**\n         * Obtains new pixel map with alpha information. This method uses a callback to return the information.\n         *\n         * @param { AsyncCallback<PixelMap> } callback Callback used to return the new image pixel map. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        /**\n         * Obtains new pixel map with alpha information. This method uses a callback to return the information.\n         *\n         * @param { AsyncCallback<PixelMap> } callback Callback used to return the new image pixel map. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains new pixel map with alpha information. This method uses a callback to return the information.\n         *\n         * @param { AsyncCallback<PixelMap> } callback Callback used to return the new image pixel map. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Obtains new pixel map with alpha information. This method uses a callback to return the information.\n         *\n         * @param { AsyncCallback<PixelMap> } callback Callback used to return the new image pixel map. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        createAlphaPixelmap(callback: AsyncCallback<PixelMap>): void;\n        /**\n         * Obtains new pixel map with alpha information.\n         *\n         * @returns { PixelMap } return the new image pixel map. If the operation fails, an error message is returned.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Parameter verification failed.\n         * @throws { BusinessError } 501 - Resource Unavailable.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        createAlphaPixelmapSync(): PixelMap;\n        /**\n         * Image zoom in width and height. This method uses a callback to return the operation result.\n         *\n         * @param { number } x The zoom value of width.\n         * @param { number } y The zoom value of height.\n         * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        /**\n         * Image zoom in width and height. This method uses a callback to return the operation result.\n         *\n         * @param { number } x The zoom value of width.\n         * @param { number } y The zoom value of height.\n         * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Image zoom in width and height. This method uses a callback to return the operation result.\n         *\n         * @param { number } x The zoom value of width.\n         * @param { number } y The zoom value of height.\n         * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Image zoom in width and height. This method uses a callback to return the operation result.\n         *\n         * @param { number } x The zoom value of width.\n         * @param { number } y The zoom value of height.\n         * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        scale(x: number, y: number, callback: AsyncCallback<void>): void;\n        /**\n         * Image zoom in width and height. This method uses a promise to return the result.\n         *\n         * @param { number } x The zoom value of width.\n         * @param { number } y The zoom value of height.\n         * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        /**\n         * Image zoom in width and height. This method uses a promise to return the result.\n         *\n         * @param { number } x The zoom value of width.\n         * @param { number } y The zoom value of height.\n         * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Image zoom in width and height. This method uses a promise to return the result.\n         *\n         * @param { number } x The zoom value of width.\n         * @param { number } y The zoom value of height.\n         * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Image zoom in width and height. This method uses a promise to return the result.\n         *\n         * @param { number } x The zoom value of width.\n         * @param { number } y The zoom value of height.\n         * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        scale(x: number, y: number): Promise<void>;\n        /**\n         * Image zoom in width and height.\n         *\n         * @param { number } x The zoom value of width.\n         * @param { number } y The zoom value of height.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.\n         * 2.Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 501 - Resource Unavailable.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        scaleSync(x: number, y: number): void;\n        /**\n         * Image zoom in width and height width with anti-aliasing. This method uses a promise to return the result.\n         *\n         * @param { number } x The zoom value of width.\n         * @param { number } y The zoom value of height.\n         * @param { AntiAliasingLevel } level The anti-aliasing algorithm to be used.\n         * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.\n         * 2.Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 501 - Resource Unavailable.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        scale(x: number, y: number, level: AntiAliasingLevel): Promise<void>;\n        /**\n         * Image zoom in width and height with anti-aliasing.\n         *\n         * @param { number } x The zoom value of width.\n         * @param { number } y The zoom value of height.\n         * @param { AntiAliasingLevel } level The anti-aliasing algorithm to be used.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.\n         * 2.Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 501 - Resource Unavailable.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        scaleSync(x: number, y: number, level: AntiAliasingLevel): void;\n        /**\n         * Create a new scaled pixelmap based on this image zoom in width and height with anti-aliasing. This method uses a promise to return the information.\n         *\n         * @param { number } x The zoom value of width.\n         * @param { number } y The zoom value of height.\n         * @param { AntiAliasingLevel } level The anti-aliasing algorithm to be used.\n         * @returns { Promise<PixelMap> } A Promise instance used to return the new scaled pixelmap. If the operation fails, an error message is returned.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.\n         * 2.Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 501 - Resource Unavailable.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 18\n         */\n        createScaledPixelMap(x: number, y: number, level?: AntiAliasingLevel): Promise<PixelMap>;\n        /**\n         * Create a new scaled pixelmap based on this image zoom in width and height with anti-aliasing.\n         *\n         * @param { number } x The zoom value of width.\n         * @param { number } y The zoom value of height.\n         * @param { AntiAliasingLevel } level The anti-aliasing algorithm to be used.\n         * @returns { PixelMap } return the new scaled pixelmap. If the operation fails, an error message is returned.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.\n         * 2.Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 501 - Resource Unavailable.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 18\n         */\n        createScaledPixelMapSync(x: number, y: number, level?: AntiAliasingLevel): PixelMap;\n        /**\n         * Image position transformation. This method uses a callback to return the operation result.\n         *\n         * @param { number } x The position value of width.\n         * @param { number } y The position value of height.\n         * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        /**\n         * Image position transformation. This method uses a callback to return the operation result.\n         *\n         * @param { number } x The position value of width.\n         * @param { number } y The position value of height.\n         * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Image position transformation. This method uses a callback to return the operation result.\n         *\n         * @param { number } x The position value of width.\n         * @param { number } y The position value of height.\n         * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Image position transformation. This method uses a callback to return the operation result.\n         *\n         * @param { number } x The position value of width.\n         * @param { number } y The position value of height.\n         * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        translate(x: number, y: number, callback: AsyncCallback<void>): void;\n        /**\n         * Image position transformation. This method uses a promise to return the result.\n         *\n         * @param { number } x The position value of width.\n         * @param { number } y The position value of height.\n         * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        /**\n         * Image position transformation. This method uses a promise to return the result.\n         *\n         * @param { number } x The position value of width.\n         * @param { number } y The position value of height.\n         * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Image position transformation. This method uses a promise to return the result.\n         *\n         * @param { number } x The position value of width.\n         * @param { number } y The position value of height.\n         * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Image position transformation. This method uses a promise to return the result.\n         *\n         * @param { number } x The position value of width.\n         * @param { number } y The position value of height.\n         * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        translate(x: number, y: number): Promise<void>;\n        /**\n         * Image position transformation.\n         *\n         * @param { number } x The position value of width.\n         * @param { number } y The position value of height.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.\n         * 2.Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 501 - Resource Unavailable.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        translateSync(x: number, y: number): void;\n        /**\n         * Image rotation. This method uses a callback to return the operation result.\n         *\n         * @param { number } angle The rotation angle.\n         * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        /**\n         * Image rotation. This method uses a callback to return the operation result.\n         *\n         * @param { number } angle The rotation angle.\n         * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Image rotation. This method uses a callback to return the operation result.\n         *\n         * @param { number } angle The rotation angle.\n         * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Image rotation. This method uses a callback to return the operation result.\n         *\n         * @param { number } angle The rotation angle.\n         * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        rotate(angle: number, callback: AsyncCallback<void>): void;\n        /**\n         * Image rotation. This method uses a promise to return the result.\n         *\n         * @param { number } angle The rotation angle.\n         * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        /**\n         * Image rotation. This method uses a promise to return the result.\n         *\n         * @param { number } angle The rotation angle.\n         * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Image rotation. This method uses a promise to return the result.\n         *\n         * @param { number } angle The rotation angle.\n         * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Image rotation. This method uses a promise to return the result.\n         *\n         * @param { number } angle The rotation angle.\n         * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        rotate(angle: number): Promise<void>;\n        /**\n         * Image rotation.\n         *\n         * @param { number } angle The rotation angle.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.\n         * 2.Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 501 - Resource Unavailable.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        rotateSync(angle: number): void;\n        /**\n         * Image flipping. This method uses a callback to return the operation result.\n         *\n         * @param { boolean } horizontal Is flip in horizontal.\n         * @param { boolean } vertical Is flip in vertical.\n         * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        /**\n         * Image flipping. This method uses a callback to return the operation result.\n         *\n         * @param { boolean } horizontal Is flip in horizontal.\n         * @param { boolean } vertical Is flip in vertical.\n         * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Image flipping. This method uses a callback to return the operation result.\n         *\n         * @param { boolean } horizontal Is flip in horizontal.\n         * @param { boolean } vertical Is flip in vertical.\n         * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Image flipping. This method uses a callback to return the operation result.\n         *\n         * @param { boolean } horizontal Is flip in horizontal.\n         * @param { boolean } vertical Is flip in vertical.\n         * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        flip(horizontal: boolean, vertical: boolean, callback: AsyncCallback<void>): void;\n        /**\n         * Image flipping. This method uses a promise to return the result.\n         *\n         * @param { boolean } horizontal Is flip in horizontal.\n         * @param { boolean } vertical Is flip in vertical.\n         * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        /**\n         * Image flipping. This method uses a promise to return the result.\n         *\n         * @param { boolean } horizontal Is flip in horizontal.\n         * @param { boolean } vertical Is flip in vertical.\n         * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Image flipping. This method uses a promise to return the result.\n         *\n         * @param { boolean } horizontal Is flip in horizontal.\n         * @param { boolean } vertical Is flip in vertical.\n         * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Image flipping. This method uses a promise to return the result.\n         *\n         * @param { boolean } horizontal Is flip in horizontal.\n         * @param { boolean } vertical Is flip in vertical.\n         * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        flip(horizontal: boolean, vertical: boolean): Promise<void>;\n        /**\n         * Image flipping.\n         *\n         * @param { boolean } horizontal Is flip in horizontal.\n         * @param { boolean } vertical Is flip in vertical.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.\n         * 2.Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 501 - Resource Unavailable.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        flipSync(horizontal: boolean, vertical: boolean): void;\n        /**\n         * Crop the image. This method uses a callback to return the operation result.\n         *\n         * @param { Region } region The region to crop.\n         * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        /**\n         * Crop the image. This method uses a callback to return the operation result.\n         *\n         * @param { Region } region The region to crop.\n         * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Crop the image. This method uses a callback to return the operation result.\n         *\n         * @param { Region } region The region to crop.\n         * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Crop the image. This method uses a callback to return the operation result.\n         *\n         * @param { Region } region The region to crop.\n         * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        crop(region: Region, callback: AsyncCallback<void>): void;\n        /**\n         * Crop the image. This method uses a promise to return the result.\n         *\n         * @param { Region } region The region to crop.\n         * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        /**\n         * Crop the image. This method uses a promise to return the result.\n         *\n         * @param { Region } region The region to crop.\n         * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Crop the image. This method uses a promise to return the result.\n         *\n         * @param { Region } region The region to crop.\n         * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Crop the image. This method uses a promise to return the result.\n         *\n         * @param { Region } region The region to crop.\n         * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        crop(region: Region): Promise<void>;\n        /**\n         * Crop the image.\n         *\n         * @param { Region } region The region to crop.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.\n         * 2.Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 501 - Resource Unavailable.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        cropSync(region: Region): void;\n        /**\n         * Get color space of pixel map.\n         *\n         * @returns { colorSpaceManager.ColorSpaceManager } If the operation fails, an error message is returned.\n         * @throws { BusinessError } 62980101 - The image data is abnormal.\n         * @throws { BusinessError } 62980103 - The image data is not supported.\n         * @throws { BusinessError } 62980115 - Invalid image parameter.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 10\n         */\n        /**\n         * Get color space of pixel map.\n         *\n         * @returns { colorSpaceManager.ColorSpaceManager } If the operation fails, an error message is returned.\n         * @throws { BusinessError } 62980101 - If the image data abnormal.\n         * @throws { BusinessError } 62980103 - If the image data unsupport.\n         * @throws { BusinessError } 62980115 - If the image parameter invalid.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 11\n         */\n        getColorSpace(): colorSpaceManager.ColorSpaceManager;\n        /**\n         * Marshalling pixelmap and write into MessageSequence.\n         *\n         * @param { rpc.MessageSequence } sequence rpc.MessageSequence parameter.\n         * @throws { BusinessError } 62980115 - Invalid image parameter.\n         * @throws { BusinessError } 62980097 - IPC error. Possible cause: 1.IPC communication failed. 2. Image upload exception.\n         * 3. Decode process exception. 4. Insufficient memory.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 10\n         */\n        marshalling(sequence: rpc.MessageSequence): void;\n        /**\n         * Creates a PixelMap object based on MessageSequence parameter.\n         *\n         * @param { rpc.MessageSequence } sequence rpc.MessageSequence parameter.\n         * @returns { Promise<PixelMap> } A Promise instance used to return the PixelMap object.\n         * @throws { BusinessError } 62980115 - Invalid image parameter.\n         * @throws { BusinessError } 62980097 - IPC error. Possible cause: 1.IPC communication failed. 2. Image upload exception.\n         * 3. Decode process exception. 4. Insufficient memory.\n         * @throws { BusinessError } 62980096 - The operation failed. Possible cause: 1.Image upload exception.\n         * 2. Decoding process exception. 3. Insufficient memory.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 10\n         */\n        unmarshalling(sequence: rpc.MessageSequence): Promise<PixelMap>;\n        /**\n         * Set color space of pixel map.\n         *\n         * This method is only used to set the colorspace property of pixelmap, while all pixel data remains the same after calling this method.\n         * If you want to change colorspace for all pixels, use method {@Link #applyColorSpace(colorSpaceManager.ColorSpaceManager)} or\n         * {@Link #applyColorSpace(colorSpaceManager.ColorSpaceManager, AsyncCallback<void>)}.\n         *\n         * @param { colorSpaceManager.ColorSpaceManager } colorSpace The color space for pixel map.\n         * @throws { BusinessError } 62980111 - The image source data is incomplete.\n         * @throws { BusinessError } 62980115 - Invalid image parameter.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 10\n         */\n        /**\n         * Set color space of pixel map.\n         *\n         * This method is only used to set the colorspace property of pixelmap, while all pixel data remains the same after calling this method.\n         * If you want to change colorspace for all pixels, use method {@Link #applyColorSpace(colorSpaceManager.ColorSpaceManager)} or\n         * {@Link #applyColorSpace(colorSpaceManager.ColorSpaceManager, AsyncCallback<void>)}.\n         *\n         * @param { colorSpaceManager.ColorSpaceManager } colorSpace The color space for pixel map.\n         * @throws { BusinessError } 62980111 - If the operation invalid.\n         * @throws { BusinessError } 62980115 - If the image parameter invalid.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 11\n         */\n        /**\n        * Set color space of pixel map.\n        *\n        * This method is only used to set the colorspace property of pixelmap, while all pixel data remains the same after calling this method.\n        * If you want to change colorspace for all pixels, use method {@Link #applyColorSpace(colorSpaceManager.ColorSpaceManager)} or\n        * {@Link #applyColorSpace(colorSpaceManager.ColorSpaceManager, AsyncCallback<void>)}.\n        *\n        * @param { colorSpaceManager.ColorSpaceManager } colorSpace The color space for pixel map.\n        * @throws { BusinessError } 62980111 - The image source data is incomplete.\n        * @throws { BusinessError } 62980115 - If the image parameter invalid.\n        * @syscap SystemCapability.Multimedia.Image.Core\n        * @crossplatform\n        * @since 12\n        */\n        setColorSpace(colorSpace: colorSpaceManager.ColorSpaceManager): void;\n        /**\n         * Is it stride Alignment\n         *\n         * @type { boolean }\n         * @readonly\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 11\n         */\n        readonly isStrideAlignment: boolean;\n        /**\n        * Apply color space of pixel map, the pixels will be changed by input color space. This method uses a callback to return the operation result.\n        *\n        * This method is used to change color space of pixelmap. Pixel data will be changed by calling this method.\n        * If you want to set the colorspace property of pixelmap only, use method {@Link #setColorSpace(colorSpaceManager.ColorSpaceManager)}.\n        *\n        * @param { colorSpaceManager.ColorSpaceManager } targetColorSpace - The color space for pixel map.\n        * @param { AsyncCallback<void> } callback - Callback used to return the operation result. If the operation fails, an error message is returned.\n        * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.\n        * 2.Incorrect parameter types. 3.Parameter verification failed.\n        * @throws { BusinessError } 62980104 - Failed to initialize the internal object.\n        * @throws { BusinessError } 62980108 - Failed to convert the color space.\n        * @throws { BusinessError } 62980115 - Invalid image parameter.\n        * @syscap SystemCapability.Multimedia.Image.Core\n        * @crossplatform\n        * @since 11\n        */\n        applyColorSpace(targetColorSpace: colorSpaceManager.ColorSpaceManager, callback: AsyncCallback<void>): void;\n        /**\n         * Apply color space of pixel map, the pixels will be changed by input color space. This method uses a promise to return the result.\n         *\n         * This method is used to change color space of pixelmap. Pixel data will be changed by calling this method.\n         * If you want to set the colorspace property of pixelmap only, use method {@Link #setColorSpace(colorSpaceManager.ColorSpaceManager)}.\n         *\n         * @param { colorSpaceManager.ColorSpaceManager } targetColorSpace - The color space for pixel map.\n         * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.\n         * 2.Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 62980104 - Failed to initialize the internal object.\n         * @throws { BusinessError } 62980108 - Failed to convert the color space.\n         * @throws { BusinessError } 62980115 - Invalid image parameter.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 11\n         */\n        applyColorSpace(targetColorSpace: colorSpaceManager.ColorSpaceManager): Promise<void>;\n        /**\n         * The method is used for the transformation of the image formats. Pixel data will be changed by calling this method.\n         *\n         * @param { PixelMapFormat } targetPixelFormat - The pixel format for pixelmap conversion.\n         * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.\n         * @throws { BusinessError } 62980115 - Invalid input parameter.\n         * @throws { BusinessError } 62980111 - The image source data is incomplete.\n         * @throws { BusinessError } 62980274 - The conversion failed.\n         * @throws { BusinessError } 62980276 - The type to be converted is an unsupported target pixel format.\n         * @throws { BusinessError } 62980178 - Failed to create the pixelmap.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 12\n         */\n        convertPixelFormat(targetPixelFormat: PixelMapFormat): Promise<void>;\n        /**\n        * Releases this PixelMap object. This method uses a callback to return the result.\n        *\n        * @param { AsyncCallback<void> } callback Callback invoked for instance release. If the operation fails, an error message is returned.\n        * @syscap SystemCapability.Multimedia.Image.Core\n        * @since 7\n        */\n        /**\n         * Releases this PixelMap object. This method uses a callback to return the result.\n         *\n         * @param { AsyncCallback<void> } callback Callback invoked for instance release. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Releases this PixelMap object. This method uses a callback to return the result.\n         *\n         * @param { AsyncCallback<void> } callback Callback invoked for instance release. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Releases this PixelMap object. This method uses a callback to return the result.\n         *\n         * @param { AsyncCallback<void> } callback Callback invoked for instance release. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        release(callback: AsyncCallback<void>): void;\n        /**\n         * Releases this PixelMap object. This method uses a promise to return the result.\n         *\n         * @returns { Promise<void> } A Promise instance used to return the instance release result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 7\n         */\n        /**\n         * Releases this PixelMap object. This method uses a promise to return the result.\n         *\n         * @returns { Promise<void> } A Promise instance used to return the instance release result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Releases this PixelMap object. This method uses a promise to return the result.\n         *\n         * @returns { Promise<void> } A Promise instance used to return the instance release result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Releases this PixelMap object. This method uses a promise to return the result.\n         *\n         * @returns { Promise<void> } A Promise instance used to return the instance release result. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        release(): Promise<void>;\n        /**\n          * Enables the PixelMap object to be transferred across threads and detaches the reference from the current\n          * thread upon transfer.\n          *\n          * @param { boolean } detached A boolean value indicating whether to enable or disable the transfer and\n          * detachment feature.\n          * @throws { BusinessError } 501 - Resource Unavailable.\n          * @syscap SystemCapability.Multimedia.Image.Core\n          * @since 12\n          */\n        setTransferDetached(detached: boolean): void;\n        /**\n         * Get metadata.\n         *\n         * @param { HdrMetadataKey } key Type of metadata.\n         * @returns { HdrMetadataValue } Returns the value of metadata.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.\n         * 2.Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 501 - Resource unavailable.\n         * @throws { BusinessError } 62980173 - The DMA memory does not exist.\n         * @throws { BusinessError } 62980302 - Memory copy failed. Possibly caused by invalid metadata value.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 12\n         */\n        getMetadata(key: HdrMetadataKey): HdrMetadataValue;\n        /**\n         * Set pixelmap memory name.\n         *\n         * @param { string } name The name of the memory that needs to be set\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.The length of the input parameter is too long.\n         * 2.Parameter verification failed.\n         * @throws { BusinessError } 501 - Resource unavailable.\n         * @throws { BusinessError } 62980286 - Memory format not supported.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 13\n         */\n        setMemoryNameSync(name: string): void;\n        /**\n         * Clone pixelmap from current pixelmap.\n         *\n         * @returns { PixelMap } A instance used to return the PixelMap object.\n         * @throws { BusinessError } 501 - Resource unavailable.\n         * @throws { BusinessError } 62980102 - Image malloc abnormal. This status code is thrown when an error occurs during the process of copying data.\n         * @throws { BusinessError } 62980103 - Image YUV And ASTC types are not supported.\n         * @throws { BusinessError } 62980104 - Image initialization abnormal. This status code is thrown when an error occurs during the process of createing empty pixelmap.\n         * @throws { BusinessError } 62980106 - The image data is to large.This status code is thrown when an error occurs during the process of checking size.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 18\n         */\n        cloneSync(): PixelMap;\n        /**\n         * Clone pixelmap from current pixelmap.\n         *\n         * @returns { Promise<PixelMap> } A Promise instance used to return the PixelMap object.\n         * @throws { BusinessError } 501 - Resource unavailable.\n         * @throws { BusinessError } 62980102 - Image malloc abnormal. This status code is thrown when an error occurs during the process of copying data.\n         * @throws { BusinessError } 62980103 - Image YUV And ASTC types are not supported.\n         * @throws { BusinessError } 62980104 - Image initialization abnormal. This status code is thrown when an error occurs during the process of createing empty pixelmap.\n         * @throws { BusinessError } 62980106 - The image data is to large.This status code is thrown when an error occurs during the process of checking size.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 18\n         */\n        clone(): Promise<PixelMap>;\n        /**\n         * Set metadata.\n         *\n         * @param { HdrMetadataKey } key Type of metadata.\n         * @param { HdrMetadataValue } value Value of metadata.\n         * @returns { Promise<void> } A Promise instance used to return the instance release result. If the operation fails,\n         * an error message is returned.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.\n         * 2.Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 501 - Resource unavailable.\n         * @throws { BusinessError } 62980173 - The DMA memory does not exist.\n         * @throws { BusinessError } 62980302 - Memory copy failed. Possibly caused by invalid metadata value.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 12\n         */\n        setMetadata(key: HdrMetadataKey, value: HdrMetadataValue): Promise<void>;\n    }\n    /**\n     * Picture instance. It is composed of a main pixelmap, auxiliary pictures and metadata. The main pixelmap contains\n     * the main visual content; auxiliary pictures store additional information related to the main pixelmap;\n     * and metadata stores other information associated with the image.\n     *\n     * @typedef Picture\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @since 13\n     */\n    interface Picture {\n        /**\n         * Obtains the pixel map of the main image.\n         *\n         * @returns { PixelMap } Returns the pixel map.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 13\n         */\n        getMainPixelmap(): PixelMap;\n        /**\n         * Obtains the hdr pixel map. This method uses a promise to return the PixelMap object.\n         *\n         * @returns { Promise<PixelMap> } A Promise instance used to return the PixelMap object.\n         * @throws { BusinessError } 7600901 - Inner unknown error. Please check the logs for detailed information.\n         * @throws { BusinessError } 7600201 - Unsupported operation. e.g.,1. The picture does not has a gainmap.\n         * 2. MainPixelMap's allocator type is not DMA.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 13\n         */\n        getHdrComposedPixelmap(): Promise<PixelMap>;\n        /**\n         * Obtains the gain map pixel map.\n         * @returns { PixelMap | null } Returns the pixel map if the operation is successful; returns null otherwise.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 13\n         */\n        getGainmapPixelmap(): PixelMap | null;\n        /**\n         * Set auxiliary picture.\n         *\n         * @param { AuxiliaryPictureType } type The type of auxiliary picture.\n         * @param { AuxiliaryPicture } auxiliaryPicture AuxiliaryPicture object.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.\n         * 2.Incorrect parameter types. 3.Parameter verification failed.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 13\n         */\n        setAuxiliaryPicture(type: AuxiliaryPictureType, auxiliaryPicture: AuxiliaryPicture): void;\n        /**\n         * Obtains the auxiliary picture based on type.\n         *\n         * @param { AuxiliaryPictureType } type The type of auxiliary picture.\n         * @returns { AuxiliaryPicture | null } Returns the auxiliary picture object.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.\n         * 2.Incorrect parameter types. 3.Parameter verification failed.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 13\n         */\n        getAuxiliaryPicture(type: AuxiliaryPictureType): AuxiliaryPicture | null;\n        /**\n         * Set the metadata of main picture.\n         *\n         * @param { MetadataType } metadataType The type of metadata.\n         * @param { Metadata } metadata The metadata of main picture.\n         * @returns { Promise<void> } A Promise instance used to return the operation result.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.\n         * 2.Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 7600202 - Unsupported metadata. Possible causes: 1. Unsupported metadata type. 2. The\n         * metadata type does not match the auxiliary picture type.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 13\n         */\n        setMetadata(metadataType: MetadataType, metadata: Metadata): Promise<void>;\n        /**\n         * Obtains the metadata of main picture.\n         *\n         * @param { MetadataType } metadataType The type of metadata.\n         * @returns { Promise<Metadata> } Return the metadata of main picture.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.\n         * 2.Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 7600202 - Unsupported metadata. Possible causes: 1. Unsupported metadata type. 2. The\n         * metadata type does not match the auxiliary picture type.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 13\n         */\n        getMetadata(metadataType: MetadataType): Promise<Metadata>;\n        /**\n         * Marshalling picture and write into MessageSequence.\n         *\n         * @param { rpc.MessageSequence } sequence rpc.MessageSequence parameter.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.\n         * 2.Incorrect parameter types; 3.Parameter verification failed.\n         * @throws { BusinessError } 62980097 - IPC error. Possible cause: 1.IPC communication failed. 2. Image upload exception.\n         * 3. Decode process exception. 4. Insufficient memory.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 13\n         */\n        marshalling(sequence: rpc.MessageSequence): void;\n        /**\n         * Releases this Picture object.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 13\n         */\n        release(): void;\n    }\n    /**\n     * Create a Picture object by the pixel map of the main image.\n     *\n     * @param { PixelMap } mainPixelmap The pixel map of the main image.\n     * @returns { Picture } Returns the Picture object.\n     * @throws { BusinessError } 401 - Parameter error.Possible causes: 1.Mandatory parameters are left unspecified.\n     * 2.Incorrect parameter types; 3.Parameter verification failed.\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @since 13\n     */\n    function createPicture(mainPixelmap: PixelMap): Picture;\n    /**\n     * Creates a Picture object based on MessageSequence parameter.\n     *\n     * @param { rpc.MessageSequence } sequence - rpc.MessageSequence parameter.\n     * @returns { Picture } Returns the Picture object.\n     * @throws { BusinessError } 401 - Parameter error.Possible causes: 1.Mandatory parameters are left unspecified.\n     * 2.Incorrect parameter types; 3.Parameter verification failed.\n     * @throws { BusinessError } 62980097 - IPC error. Possible cause: 1.IPC communication failed. 2. Image upload exception.\n     * 3. Decode process exception. 4. Insufficient memory.\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @since 13\n     */\n    function createPictureFromParcel(sequence: rpc.MessageSequence): Picture;\n    /**\n     * Create a AuxiliaryPicture object by data buffer.\n     *\n     * @param { ArrayBuffer } buffer The image data buffer.\n     * @param { Size } size The size of auxiliary picture.\n     * @param { AuxiliaryPictureType } type The type of auxiliary picture.\n     * @returns { AuxiliaryPicture } The AuxiliaryPicture object.\n     * @throws { BusinessError } 401 - Parameter error.Possible causes: 1.Mandatory parameters are left unspecified.\n     * 2.Incorrect parameter types; 3.Parameter verification failed.\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @since 13\n     */\n    function createAuxiliaryPicture(buffer: ArrayBuffer, size: Size, type: AuxiliaryPictureType): AuxiliaryPicture;\n    /**\n     * AuxiliaryPicture instance.\n     *\n     * @typedef AuxiliaryPicture\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @since 13\n     */\n    interface AuxiliaryPicture {\n        /**\n         * Reads auxiliary picture data in an ArrayBuffer and writes the data to a AuxiliaryPicture object. This method\n         * uses a promise to return the result.\n         *\n         * @param { ArrayBuffer } data A buffer from which the auxiliary picture data will be read.\n         * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an\n         * error message is returned.\n         * @throws { BusinessError } 401 - Parameter error.Possible causes: 1.Mandatory parameters are left unspecified.\n         * 2.Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 7600301 - Memory alloc failed.\n         * @throws { BusinessError } 7600302 - Memory copy failed.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 13\n         */\n        writePixelsFromBuffer(data: ArrayBuffer): Promise<void>;\n        /**\n         * Reads image pixel map data and writes the data to an ArrayBuffer. This method uses\n         * a promise to return the result.\n         *\n         * @returns { Promise<ArrayBuffer> } A Promise instance used to return the pixel map data.\n         * @throws { BusinessError } 7600301 - Memory alloc failed.\n         * @throws { BusinessError } 7600302 - Memory copy failed.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 13\n         */\n        readPixelsToBuffer(): Promise<ArrayBuffer>;\n        /**\n         * Obtains the type of auxiliary picture.\n         *\n         * @returns { AuxiliaryPictureType } Returns the type of auxiliary picture.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 13\n         */\n        getType(): AuxiliaryPictureType;\n        /**\n         * Set the metadata of auxiliary picture.\n         *\n         * @param { MetadataType } metadataType The type of metadata.\n         * @param { Metadata } metadata The metadata of auxiliary picture.\n         * @returns { Promise<void> } A Promise instance used to return the operation result.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.\n         * 2.Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 7600202 - Unsupported metadata. Possible causes: 1. Unsupported metadata type. 2. The\n         * metadata type does not match the auxiliary picture type.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 13\n         */\n        setMetadata(metadataType: MetadataType, metadata: Metadata): Promise<void>;\n        /**\n         * Obtains the metadata of auxiliary picture.\n         *\n         * @param { MetadataType } metadataType The type of metadata.\n         * @returns { Promise<Metadata> } Return the metadata of auxiliary picture.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.\n         * 2.Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 7600202 - Unsupported metadata. Possible causes: 1. Unsupported metadata type. 2. The\n         * metadata type does not match the auxiliary picture type.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 13\n         */\n        getMetadata(metadataType: MetadataType): Promise<Metadata>;\n        /**\n         * Obtains the information about this auxiliary picture.\n         *\n         * @returns { AuxiliaryPictureInfo } Returns the auxiliary picture information. If the operation fails, an error\n         * message is returned.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 13\n         */\n        getAuxiliaryPictureInfo(): AuxiliaryPictureInfo;\n        /**\n         * Set the information about this auxiliary picture.\n         *\n         * @param { AuxiliaryPictureInfo } info the auxiliary picture information.\n         * @throws { BusinessError } 401 - Parameter error.Possible causes: 1.Mandatory parameters are left unspecified.\n         * 2.Incorrect parameter types. 3.Parameter verification failed.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 13\n         */\n        setAuxiliaryPictureInfo(info: AuxiliaryPictureInfo): void;\n        /**\n         * Releases this AuxiliaryPicture object.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 13\n         */\n        release(): void;\n    }\n    /**\n     * Enumerates auxiliary picture type.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @since 13\n     */\n    enum AuxiliaryPictureType {\n        /**\n         * Gain Map, which is an auxiliary image that describes how the brightness of each pixel should be scaled in order\n         * to correctly map image luminance between display devices with different dynamic ranges. It is typically used to\n         * convert a Standard Dynamic Range (SDR) image into a High Dynamic Range (HDR) image.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 13\n         */\n        GAINMAP = 1,\n        /**\n         * Depth map, which stores the depth information of an image by capturing the distance between each pixel and\n         * the camera. It provides three-dimensional structural information of the scene and is commonly used for 3D\n         * reconstruction and scene understanding.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 13\n         */\n        DEPTH_MAP = 2,\n        /**\n         * Unrefocus map, representing an original portrait image with unfocused background, which provides a way to\n         * emphasize background blur inportrait photography.\n         * It helps users select the focus area during post-processing, enhancing creative flexibility.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 13\n         */\n        UNREFOCUS_MAP = 3,\n        /**\n         * Linear map, used to provide an additional data perspective or supplementary information, typically for enhancing\n         * visual effects. It can contain a linear representation of lighting, color, or other visual elements in the scene.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 13\n         */\n        LINEAR_MAP = 4,\n        /**\n         * Fragment map, representing the region in the original image that is covered by a watermark.\n         * This image is used to restore or remove the effects of the watermark, helping to recover the image’s integrity\n         * and visual clarity.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 13\n         */\n        FRAGMENT_MAP = 5\n    }\n    /**\n     * Enumerates metadata type.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @since 13\n     */\n    enum MetadataType {\n        /**\n         * EXIF metadata.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 13\n         */\n        EXIF_METADATA = 1,\n        /**\n         * Fragment metadata.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 13\n         */\n        FRAGMENT_METADATA = 2\n    }\n    /**\n     * Metadata instance.\n     *\n     * @typedef Metadata\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @since 13\n     */\n    interface Metadata {\n        /**\n         * Obtains the value of properties in an image. This method uses a promise to return the property values in array\n         * of records.\n         *\n         * @param { Array<string> } key Name of the properties whose value is to be obtained.\n         * @returns { Promise<Record<string, string | null>> } Array of Records instance used to return the property values.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.\n         * 2.Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 7600202 - Unsupported metadata. Possible causes: 1. Unsupported metadata type. 2. The\n         * metadata type does not match the auxiliary picture type.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 13\n         */\n        getProperties(key: Array<string>): Promise<Record<string, string | null>>;\n        /**\n         * Modify the value of properties in an image with the specified keys.\n         *\n         * @param { Record<string, string | null> } records Array of the property Records whose values are to\n         * be modified.\n         * @returns { Promise<void> } A Promise instance used to return the operation result.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.\n         * 2.Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 7600202 - Unsupported metadata. Possible causes: 1. Unsupported metadata type. 2. The\n         * metadata type does not match the auxiliary picture type.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 13\n         */\n        setProperties(records: Record<string, string | null>): Promise<void>;\n        /**\n         * Obtains the value of all properties in an image. This method uses a promise to return the property values\n         * in array of records.\n         *\n         * @returns { Promise<Record<string, string | null>> } Array of Records instance used to return the property values.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 13\n         */\n        getAllProperties(): Promise<Record<string, string | null>>;\n        /**\n         * Obtains a clone of metadata. This method uses a promise to return the metadata.\n         *\n         * @returns { Promise<Metadata> } A Promise instance used to return the metadata.\n         * @throws { BusinessError } 7600301 - Memory alloc failed.\n         * @throws { BusinessError } 7600302 - Memory copy failed.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 13\n         */\n        clone(): Promise<Metadata>;\n    }\n    /**\n     * Enumerates fragment map information types of an image.\n     *\n     * @enum { string }\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @since 13\n     */\n    enum FragmentMapPropertyKey {\n        /**\n         * The x-coordinate of the top left corner of the mark cup map in the original image.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 13\n         */\n        X_IN_ORIGINAL = 'XInOriginal',\n        /**\n         * The y-coordinate of the top left corner of the mark cup map in the original image.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 13\n         */\n        Y_IN_ORIGINAL = 'YInOriginal',\n        /**\n         * Mark cut map width.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 13\n         */\n        WIDTH = 'FragmentImageWidth',\n        /**\n         * Mark cut map width.\n         *\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 13\n         */\n        HEIGHT = 'FragmentImageHeight'\n    }\n    /**\n     * Describes image decoding parameters.\n     *\n     * @typedef DecodingOptionsForPicture\n     * @syscap SystemCapability.Multimedia.Image.ImageSource\n     * @since 13\n     */\n    interface DecodingOptionsForPicture {\n        /**\n         * Expected set of auxiliary picture types, default to decoding all auxiliary pictures.\n         *\n         * @type { Array<AuxiliaryPictureType> }\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @since 13\n         */\n        desiredAuxiliaryPictures: Array<AuxiliaryPictureType>;\n    }\n    /**\n    * Describes auxiliary picture information.\n    *\n    * @typedef AuxiliaryPictureInfo\n    * @syscap SystemCapability.Multimedia.Image.Core\n    * @since 13\n    */\n    interface AuxiliaryPictureInfo {\n        /**\n         * Indicates auxiliary picture type.\n         *\n         * @type { AuxiliaryPictureType }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 13\n         */\n        auxiliaryPictureType: AuxiliaryPictureType;\n        /**\n         * Indicates image dimensions specified by a {@link Size} interface.\n         *\n         * @type { Size }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 13\n         */\n        size: Size;\n        /**\n         * The number of byte per row.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 13\n         */\n        rowStride: number;\n        /**\n         * Indicates image format.\n         *\n         * @type { PixelMapFormat }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 13\n         */\n        pixelFormat: PixelMapFormat;\n        /**\n         * Indicates color space for pixel map.\n         *\n         * @type { colorSpaceManager.ColorSpaceManager }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 13\n         */\n        colorSpace: colorSpaceManager.ColorSpaceManager;\n    }\n    /**\n     * ImageSource instance.\n     *\n     * @typedef ImageSource\n     * @syscap SystemCapability.Multimedia.Image.ImageSource\n     * @since 6\n     */\n    /**\n     * ImageSource instance.\n     *\n     * @typedef ImageSource\n     * @syscap SystemCapability.Multimedia.Image.ImageSource\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * ImageSource instance.\n     *\n     * @typedef ImageSource\n     * @syscap SystemCapability.Multimedia.Image.ImageSource\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * ImageSource instance.\n     *\n     * @typedef ImageSource\n     * @syscap SystemCapability.Multimedia.Image.ImageSource\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 12\n     */\n    interface ImageSource {\n        /**\n         * Obtains information about an image with the specified sequence number and uses a callback\n         * to return the result.\n         *\n         * @param { number } index Sequence number of an image. The default value is 0, indicating the first image.\n         * When the value is N, it refers to the (N-1)th image. In single-frame image scenarios, the value must be 0.\n         * In multi-frame image scenarios such as animations, the valid range is 0 to (frame count - 1).\n         * @param { AsyncCallback<ImageInfo> } callback Callback used to return the image information.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @since 6\n         */\n        /**\n         * Obtains information about an image with the specified sequence number and uses a callback\n         * to return the result.\n         *\n         * @param { number } index Sequence number of an image. The default value is 0, indicating the first image.\n         * When the value is N, it refers to the (N-1)th image. In single-frame image scenarios, the value must be 0.\n         * In multi-frame image scenarios such as animations, the valid range is 0 to (frame count - 1).\n         * @param { AsyncCallback<ImageInfo> } callback Callback used to return the image information.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains information about an image with the specified sequence number and uses a callback\n         * to return the result.\n         *\n         * @param { number } index Sequence number of an image. The default value is 0, indicating the first image.\n         * When the value is N, it refers to the (N-1)th image. In single-frame image scenarios, the value must be 0.\n         * In multi-frame image scenarios such as animations, the valid range is 0 to (frame count - 1).\n         * @param { AsyncCallback<ImageInfo> } callback Callback used to return the image information.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Obtains information about an image with the specified sequence number and uses a callback\n         * to return the result.\n         *\n         * @param { number } index Sequence number of an image. The default value is 0, indicating the first image.\n         * When the value is N, it refers to the (N-1)th image. In single-frame image scenarios, the value must be 0.\n         * In multi-frame image scenarios such as animations, the valid range is 0 to (frame count - 1).\n         * @param { AsyncCallback<ImageInfo> } callback Callback used to return the image information.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        getImageInfo(index: number, callback: AsyncCallback<ImageInfo>): void;\n        /**\n         * Obtains information about this image and uses a callback to return the result.\n         *\n         * @param { AsyncCallback<ImageInfo> } callback Callback used to return the image information.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @since 6\n         */\n        /**\n         * Obtains information about this image and uses a callback to return the result.\n         *\n         * @param { AsyncCallback<ImageInfo> } callback Callback used to return the image information.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains information about this image and uses a callback to return the result.\n         *\n         * @param { AsyncCallback<ImageInfo> } callback Callback used to return the image information.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Obtains information about this image and uses a callback to return the result.\n         *\n         * @param { AsyncCallback<ImageInfo> } callback Callback used to return the image information.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        getImageInfo(callback: AsyncCallback<ImageInfo>): void;\n        /**\n         * Get image information from image source.\n         *\n         * @param { number } index Sequence number of an image. The default value is 0, indicating the first image.\n         * When the value is N, it refers to the (N-1)th image. In single-frame image scenarios, the value must be 0.\n         * In multi-frame image scenarios such as animations, the valid range is 0 to (frame count - 1).\n         * @returns { Promise<ImageInfo> } A Promise instance used to return the image information.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @since 6\n         */\n        /**\n         * Get image information from image source.\n         *\n         * @param { number } index Sequence number of an image. The default value is 0, indicating the first image.\n         * When the value is N, it refers to the (N-1)th image. In single-frame image scenarios, the value must be 0.\n         * In multi-frame image scenarios such as animations, the valid range is 0 to (frame count - 1).\n         * @returns { Promise<ImageInfo> } A Promise instance used to return the image information.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Get image information from image source.\n         *\n         * @param { number } index Sequence number of an image. The default value is 0, indicating the first image.\n         * When the value is N, it refers to the (N-1)th image. In single-frame image scenarios, the value must be 0.\n         * In multi-frame image scenarios such as animations, the valid range is 0 to (frame count - 1).\n         * @returns { Promise<ImageInfo> } A Promise instance used to return the image information.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Get image information from image source.\n         *\n         * @param { number } index Sequence number of an image. The default value is 0, indicating the first image.\n         * When the value is N, it refers to the (N-1)th image. In single-frame image scenarios, the value must be 0.\n         * In multi-frame image scenarios such as animations, the valid range is 0 to (frame count - 1).\n         * @returns { Promise<ImageInfo> } A Promise instance used to return the image information.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        getImageInfo(index?: number): Promise<ImageInfo>;\n        /**\n         * Get image information from image source synchronously.\n         *\n         * @param { number } index Sequence number of an image. The default value is 0, indicating the first image.\n         * When the value is N, it refers to the (N-1)th image. In single-frame image scenarios, the value must be 0.\n         * In multi-frame image scenarios such as animations, the valid range is 0 to (frame count - 1).\n         * @returns { ImageInfo } The image information.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 12\n         */\n        getImageInfoSync(index?: number): ImageInfo;\n        /**\n         * Creates a PixelMap object based on image decoding parameters. This method uses a promise to\n         * return the object.\n         *\n         * @param { DecodingOptions } options Image decoding parameters.\n         * @returns { Promise<PixelMap> } A Promise instance used to return the PixelMap object.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @since 7\n         */\n        /**\n         * Creates a PixelMap object based on image decoding parameters. This method uses a promise to\n         * return the object.\n         *\n         * @param { DecodingOptions } options Image decoding parameters.\n         * @returns { Promise<PixelMap> } A Promise instance used to return the PixelMap object.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Creates a PixelMap object based on image decoding parameters. This method uses a promise to\n         * return the object.\n         *\n         * @param { DecodingOptions } options Image decoding parameters.\n         * @returns { Promise<PixelMap> } A Promise instance used to return the PixelMap object.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Creates a PixelMap object based on image decoding parameters. This method uses a promise to\n         * return the object.\n         *\n         * @param { DecodingOptions } options Image decoding parameters.\n         * @returns { Promise<PixelMap> } A Promise instance used to return the PixelMap object.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        createPixelMap(options?: DecodingOptions): Promise<PixelMap>;\n        /**\n         * Creates a PixelMap object. This method uses a callback to return the object.\n         *\n         * @param { AsyncCallback<PixelMap> } callback Callback used to return the PixelMap object.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @since 7\n         */\n        /**\n         * Creates a PixelMap object. This method uses a callback to return the object.\n         *\n         * @param { AsyncCallback<PixelMap> } callback Callback used to return the PixelMap object.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Creates a PixelMap object. This method uses a callback to return the object.\n         *\n         * @param { AsyncCallback<PixelMap> } callback Callback used to return the PixelMap object.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Creates a PixelMap object. This method uses a callback to return the object.\n         *\n         * @param { AsyncCallback<PixelMap> } callback Callback used to return the PixelMap object.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        createPixelMap(callback: AsyncCallback<PixelMap>): void;\n        /**\n         * Creates a PixelMap object based on image decoding parameters. This method uses a callback to\n         * return the object.\n         *\n         * @param { DecodingOptions } options Image decoding parameters.\n         * @param { AsyncCallback<PixelMap> } callback Callback used to return the PixelMap object.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @since 7\n         */\n        /**\n         * Creates a PixelMap object based on image decoding parameters. This method uses a callback to\n         * return the object.\n         *\n         * @param { DecodingOptions } options Image decoding parameters.\n         * @param { AsyncCallback<PixelMap> } callback Callback used to return the PixelMap object.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Creates a PixelMap object based on image decoding parameters. This method uses a callback to\n         * return the object.\n         *\n         * @param { DecodingOptions } options Image decoding parameters.\n         * @param { AsyncCallback<PixelMap> } callback Callback used to return the PixelMap object.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Creates a PixelMap object based on image decoding parameters. This method uses a callback to\n         * return the object.\n         *\n         * @param { DecodingOptions } options Image decoding parameters.\n         * @param { AsyncCallback<PixelMap> } callback Callback used to return the PixelMap object.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @form\n         * @atomicservice\n         * @since 12\n         */\n        createPixelMap(options: DecodingOptions, callback: AsyncCallback<PixelMap>): void;\n        /**\n         * Creates a PixelMap based on decoding parameters, the memory type used by the PixelMap can be specified by\n         * allocatorType. By default, the system selects the memory type based on the image type, image size, platform\n         * capability, etc. When processing the PixelMap returned by this interface, please always consider the impact of\n         * stride.\n         *\n         * @param { DecodingOptions } options Image decoding parameters.\n         * @param { AllocatorType } allocatorType Indicate which memory type will be used by the returned PixelMap.\n         * @returns { Promise<PixelMap> } A Promise instance used to return the PixelMap object.\n         * @throws { BusinessError } 401 - Parameter error.Possible causes: 1.Mandatory parameters are left unspecified.\n         * 2.Incorrect parameter types; 3.Parameter verification failed.\n         * @throws { BusinessError } 7700101 - Bad source. e.g.,1. Image has invalid width or height. 2. Image source incomplete.\n         * 3. Read image data failed. 4. Codec create failed.\n         * @throws { BusinessError } 7700102 - Unsupported mimetype.\n         * @throws { BusinessError } 7700103 - Image too large. This status code is thrown when an error occurs during the process of\n         * checking size.\n         * @throws { BusinessError } 7700201 - Unsupported allocator type, e.g., use share memory to decode a HDR image as\n         * only DMA supported hdr metadata.\n         * @throws { BusinessError } 7700203 - Unsupported options, e.g, cannot convert image into desired pixel format.\n         * @throws { BusinessError } 7700301 - Failed to decode image.\n         * @throws { BusinessError } 7700302 - Failed to allocate memory.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @since 15\n         */\n        createPixelMapUsingAllocator(options?: DecodingOptions, allocatorType?: AllocatorType): Promise<PixelMap>;\n        /**\n         * Create a PixelMap object based on image decoding parameters synchronously.\n         *\n         * @param { DecodingOptions } options - Image decoding parameters.\n         * @returns { PixelMap } Return the PixelMap. If decoding fails, return undefined.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 12\n         */\n        createPixelMapSync(options?: DecodingOptions): PixelMap;\n        /**\n         * Creates a PixelMap based on decoding parameters synchronously, the memory type used by the PixelMap can be\n         * specified by allocatorType. By default, the system selects the memory type based on the image type, image size,\n         * platform capability, etc. When processing the PixelMap returned by this interface, please always consider the\n         * impact of stride.\n         *\n         * @param { DecodingOptions } options Image decoding parameters.\n         * @param { AllocatorType } allocatorType Indicate which memory type will be used by the returned PixelMap.\n         * @returns { PixelMap } Return the PixelMap. If decoding fails, return undefined.\n         * @throws { BusinessError } 401 - Parameter error.Possible causes: 1.Mandatory parameters are left unspecified.\n         * 2.Incorrect parameter types; 3.Parameter verification failed.\n         * @throws { BusinessError } 7700101 - Bad source. e.g.,1. Image has invalid width or height. 2. Image source incomplete.\n         * 3. Read image data failed. 4. Codec create failed.\n         * @throws { BusinessError } 7700102 - Unsupported mimetype.\n         * @throws { BusinessError } 7700103 - Image too large. This status code is thrown when an error occurs during the process of\n         * checking size.\n         * @throws { BusinessError } 7700201 - Unsupported allocator type, e.g., use share memory to decode a HDR image as\n         * only DMA supported hdr metadata.\n         * @throws { BusinessError } 7700203 - Unsupported options, e.g, cannot convert image into desired pixel format.\n         * @throws { BusinessError } 7700301 - Failed to decode image.\n         * @throws { BusinessError } 7700302 - Failed to allocate memory.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @since 15\n         */\n        createPixelMapUsingAllocatorSync(options?: DecodingOptions, allocatorType?: AllocatorType): PixelMap;\n        /**\n         * Creates a PixelMap array based on image decoding parameters. This method uses a promise to\n         * return the array. For animated images such as GIF and WebP, this interface returns the image data of each frame.\n         * For static images, it returns a single frame of image data.\n         *\n         * @param { DecodingOptions } options Image decoding parameters.\n         * @returns { Promise<Array<PixelMap>> } A Promise instance used to return the PixelMap array.\n         * @throws { BusinessError } 62980096 - The operation failed. Possible cause: 1.Image upload exception.\n         * 2. Decoding process exception. 3. Insufficient memory.\n         * @throws { BusinessError } 62980099 - The shared memory data is abnormal.\n         * @throws { BusinessError } 62980101 - The image data is abnormal.\n         * @throws { BusinessError } 62980103 - The image data is not supported.\n         * @throws { BusinessError } 62980106 - The image data is too large. This status code is thrown when an error occurs during the process of checking size.\n         * @throws { BusinessError } 62980109 - Failed to crop the image.\n         * @throws { BusinessError } 62980110 - The image source data is incorrect.\n         * @throws { BusinessError } 62980111 - The image source data is incomplete.\n         * @throws { BusinessError } 62980112 - The image format does not match.\n         * @throws { BusinessError } 62980113 - Unknown image format.\n         * The image data provided is not in a recognized or supported format, or it may be occorrupted.\n         * @throws { BusinessError } 62980115 - Invalid image parameter.\n         * @throws { BusinessError } 62980116 - Failed to decode the image.\n         * @throws { BusinessError } 62980118 - Failed to create the image plugin.\n         * @throws { BusinessError } 62980122 - Failed to decode the image header.\n         * @throws { BusinessError } 62980137 - Invalid media operation.\n         * @throws { BusinessError } 62980173 - The DMA memory does not exist.\n         * @throws { BusinessError } 62980174 - The DMA memory data is abnormal.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 10\n         */\n        /**\n        * Creates a PixelMap array based on image decoding parameters. This method uses a promise to\n        * return the array. For animated images such as GIF and WebP, this interface returns the image data of each frame.\n        * For static images, it returns a single frame of image data.\n        *\n        * @param { DecodingOptions } options Image decoding parameters.\n        * @returns { Promise<Array<PixelMap>> } A Promise instance used to return the PixelMap array.\n        * @throws { BusinessError } 62980096 - The operation failed. Possible cause: 1.Image upload exception.\n        * 2. Decoding process exception. 3. Insufficient memory.\n        * @throws { BusinessError } 62980099 - The shared memory data is abnormal.\n        * @throws { BusinessError } 62980101 - The image data is abnormal.\n        * @throws { BusinessError } 62980103 - The image data is not supported.\n        * @throws { BusinessError } 62980106 - The image data is too large. This status code is thrown when an error occurs during the process of checking size.\n        * @throws { BusinessError } 62980109 - Failed to crop the image.\n        * @throws { BusinessError } 62980110 - The image source data is incorrect.\n        * @throws { BusinessError } 62980111 - The image source data is incomplete.\n        * @throws { BusinessError } 62980112 - The image format does not match.\n        * @throws { BusinessError } 62980113 - Unknown image format.\n        * The image data provided is not in a recognized or supported format, or it may be occorrupted.\n        * @throws { BusinessError } 62980115 - Invalid image parameter.\n        * @throws { BusinessError } 62980116 - Failed to decode the image.\n        * @throws { BusinessError } 62980118 - Failed to create the image plugin.\n        * @throws { BusinessError } 62980122 - Failed to decode the image header.\n        * @throws { BusinessError } 62980137 - Invalid media operation.\n        * @throws { BusinessError } 62980173 - The DMA memory does not exist.\n        * @throws { BusinessError } 62980174 - The DMA memory data is abnormal.\n        * @syscap SystemCapability.Multimedia.Image.ImageSource\n        * @crossplatform\n        * @since 12\n        */\n        createPixelMapList(options?: DecodingOptions): Promise<Array<PixelMap>>;\n        /**\n         * Creates a PixelMap array. This method uses a callback to return the array.\n         * For animated images such as GIF and WebP, this interface returns the image data of each frame.\n         * For static images, it returns a single frame of image data.\n         *\n         * @param { AsyncCallback<Array<PixelMap>> } callback Callback used to return the PixelMap array.\n         * @throws { BusinessError } 62980096 - The operation failed. Possible cause: 1.Image upload exception.\n         * 2. Decoding process exception. 3. Insufficient memory.\n         * @throws { BusinessError } 62980099 - The shared memory data is abnormal.\n         * @throws { BusinessError } 62980101 - The image data is abnormal.\n         * @throws { BusinessError } 62980103 - The image data is not supported.\n         * @throws { BusinessError } 62980106 - The image data is too large. This status code is thrown when an error occurs during the process of checking size.\n         * @throws { BusinessError } 62980109 - Failed to crop the image.\n         * @throws { BusinessError } 62980110 - The image source data is incorrect.\n         * @throws { BusinessError } 62980111 - The image source data is incomplete.\n         * @throws { BusinessError } 62980112 - The image format does not match.\n         * @throws { BusinessError } 62980113 - Unknown image format.\n         * The image data provided is not in a recognized or supported format, or it may be occorrupted.\n         * @throws { BusinessError } 62980115 - Invalid image parameter.\n         * @throws { BusinessError } 62980116 - Failed to decode the image.\n         * @throws { BusinessError } 62980118 - Failed to create the image plugin.\n         * @throws { BusinessError } 62980122 - Failed to decode the image header.\n         * @throws { BusinessError } 62980137 - Invalid media operation.\n         * @throws { BusinessError } 62980173 - The DMA memory does not exist.\n         * @throws { BusinessError } 62980174 - The DMA memory data is abnormal.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Creates a PixelMap array. This method uses a callback to return the array.\n         * For animated images such as GIF and WebP, this interface returns the image data of each frame.\n         * For static images, it returns a single frame of image data.\n         *\n         * @param { AsyncCallback<Array<PixelMap>> } callback Callback used to return the PixelMap array.\n         * @throws { BusinessError } 62980096 - The operation failed. Possible cause: 1.Image upload exception.\n         * 2. Decoding process exception. 3. Insufficient memory.\n         * @throws { BusinessError } 62980099 - The shared memory data is abnormal.\n         * @throws { BusinessError } 62980101 - The image data is abnormal.\n         * @throws { BusinessError } 62980103 - The image data is not supported.\n         * @throws { BusinessError } 62980106 - The image data is too large. This status code is thrown when an error occurs during the process of checking size.\n         * @throws { BusinessError } 62980109 - Failed to crop the image.\n         * @throws { BusinessError } 62980110 - The image source data is incorrect.\n         * @throws { BusinessError } 62980111 - The image source data is incomplete.\n         * @throws { BusinessError } 62980112 - The image format does not match.\n         * @throws { BusinessError } 62980113 - Unknown image format.\n         * The image data provided is not in a recognized or supported format, or it may be occorrupted.\n         * @throws { BusinessError } 62980115 - Invalid image parameter.\n         * @throws { BusinessError } 62980116 - Failed to decode the image.\n         * @throws { BusinessError } 62980118 - Failed to create the image plugin.\n         * @throws { BusinessError } 62980122 - Failed to decode the image header.\n         * @throws { BusinessError } 62980137 - Invalid media operation.\n         * @throws { BusinessError } 62980173 - The DMA memory does not exist.\n         * @throws { BusinessError } 62980174 - The DMA memory data is abnormal.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 12\n         */\n        createPixelMapList(callback: AsyncCallback<Array<PixelMap>>): void;\n        /**\n         * Creates a PixelMap array based on image decoding parameters. This method uses a callback to\n         * return the array. For animated images such as GIF and WebP, this interface returns the image data of each frame.\n         * For static images, it returns a single frame of image data.\n         *\n         * @param { DecodingOptions } options Image decoding parameters.\n         * @param { AsyncCallback<Array<PixelMap>> } callback Callback used to return the PixelMap array.\n         * @throws { BusinessError } 62980096 - The operation failed. Possible cause: 1.Image upload exception.\n         * 2. Decoding process exception. 3. Insufficient memory.\n         * @throws { BusinessError } 62980099 - The shared memory data is abnormal.\n         * @throws { BusinessError } 62980101 - The image data is abnormal.\n         * @throws { BusinessError } 62980103 - The image data is not supported.\n         * @throws { BusinessError } 62980106 - The image data is too large. This status code is thrown when an error occurs during the process of checking size.\n         * @throws { BusinessError } 62980109 - Failed to crop the image.\n         * @throws { BusinessError } 62980110 - The image source data is incorrect.\n         * @throws { BusinessError } 62980111 - The image source data is incomplete.\n         * @throws { BusinessError } 62980112 - The image format does not match.\n         * @throws { BusinessError } 62980113 - Unknown image format.\n         * The image data provided is not in a recognized or supported format, or it may be occorrupted.\n         * @throws { BusinessError } 62980115 - Invalid image parameter.\n         * @throws { BusinessError } 62980116 - Failed to decode the image.\n         * @throws { BusinessError } 62980118 - Failed to create the image plugin.\n         * @throws { BusinessError } 62980122 - Failed to decode the image header.\n         * @throws { BusinessError } 62980137 - Invalid media operation.\n         * @throws { BusinessError } 62980173 - The DMA memory does not exist.\n         * @throws { BusinessError } 62980174 - The DMA memory data is abnormal.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Creates a PixelMap array based on image decoding parameters. This method uses a callback to\n         * return the array. For animated images such as GIF and WebP, this interface returns the image data of each frame.\n         * For static images, it returns a single frame of image data.\n         *\n         * @param { DecodingOptions } options Image decoding parameters.\n         * @param { AsyncCallback<Array<PixelMap>> } callback Callback used to return the PixelMap array.\n         * @throws { BusinessError } 62980096 - The operation failed. Possible cause: 1.Image upload exception.\n         * 2. Decoding process exception. 3. Insufficient memory.\n         * @throws { BusinessError } 62980099 - The shared memory data is abnormal.\n         * @throws { BusinessError } 62980101 - The image data is abnormal.\n         * @throws { BusinessError } 62980103 - The image data is not supported.\n         * @throws { BusinessError } 62980106 - The image data is too large. This status code is thrown when an error occurs during the process of checking size.\n         * @throws { BusinessError } 62980109 - Failed to crop the image.\n         * @throws { BusinessError } 62980110 - The image source data is incorrect.\n         * @throws { BusinessError } 62980111 - The image source data is incomplete.\n         * @throws { BusinessError } 62980112 - The image format does not match.\n         * @throws { BusinessError } 62980113 - Unknown image format.\n         * The image data provided is not in a recognized or supported format, or it may be occorrupted.\n         * @throws { BusinessError } 62980115 - Invalid image parameter.\n         * @throws { BusinessError } 62980116 - Failed to decode the image.\n         * @throws { BusinessError } 62980118 - Failed to create the image plugin.\n         * @throws { BusinessError } 62980122 - Failed to decode the image header.\n         * @throws { BusinessError } 62980137 - Invalid media operation.\n         * @throws { BusinessError } 62980173 - The DMA memory does not exist.\n         * @throws { BusinessError } 62980174 - The DMA memory data is abnormal.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 12\n         */\n        createPixelMapList(options: DecodingOptions, callback: AsyncCallback<Array<PixelMap>>): void;\n        /**\n         * Obtains the array of delay time in an image. This method uses a promise to return the array.\n         *\n         * @returns { Promise<Array<number>> } A Promise instance used to return the array.\n         * @throws { BusinessError } 62980096 - The operation failed. Possible cause: 1.Image upload exception.\n         * 2. Decoding process exception. 3. Insufficient memory.\n         * @throws { BusinessError } 62980110 - The image source data is incorrect.\n         * @throws { BusinessError } 62980111 - The image source data is incomplete.\n         * @throws { BusinessError } 62980112 - The image format does not match.\n         * @throws { BusinessError } 62980113 - Unknown image format.\n         * The image data provided is not in a recognized or supported format, or it may be occorrupted.\n         * @throws { BusinessError } 62980115 - Invalid image parameter.\n         * @throws { BusinessError } 62980116 - Failed to decode the image.\n         * @throws { BusinessError } 62980118 - Failed to create the image plugin.\n         * @throws { BusinessError } 62980122 - Failed to decode the image header.\n         * @throws { BusinessError } 62980137 - Invalid media operation.\n         * @throws { BusinessError } 62980149 - Invalid MIME type for the image source.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the array of delay time in an image. This method uses a promise to return the array.\n         *\n         * @returns { Promise<Array<number>> } A Promise instance used to return the array.\n         * @throws { BusinessError } 62980096 - The operation failed. Possible cause: 1.Image upload exception.\n         * 2. Decoding process exception. 3. Insufficient memory.\n         * @throws { BusinessError } 62980110 - The image source data is incorrect.\n         * @throws { BusinessError } 62980111 - The image source data is incomplete.\n         * @throws { BusinessError } 62980112 - The image format does not match.\n         * @throws { BusinessError } 62980113 - Unknown image format.\n         * The image data provided is not in a recognized or supported format, or it may be occorrupted.\n         * @throws { BusinessError } 62980115 - Invalid image parameter.\n         * @throws { BusinessError } 62980116 - Failed to decode the image.\n         * @throws { BusinessError } 62980118 - Failed to create the image plugin.\n         * @throws { BusinessError } 62980122 - Failed to decode the image header.\n         * @throws { BusinessError } 62980137 - Invalid media operation.\n         * @throws { BusinessError } 62980149 - Invalid MIME type for the image source.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 12\n         */\n        getDelayTimeList(): Promise<Array<number>>;\n        /**\n         * Obtains the array of delay time in an image. This method uses a callback to return the array.\n         *\n         * @param { AsyncCallback<Array<number>> } callback Callback used to return the array.\n         * @throws { BusinessError } 62980096 - The operation failed. Possible cause: 1.Image upload exception.\n         * 2. Decoding process exception. 3. Insufficient memory.\n         * @throws { BusinessError } 62980110 - The image source data is incorrect.\n         * @throws { BusinessError } 62980111 - The image source data is incomplete.\n         * @throws { BusinessError } 62980112 - The image format does not match.\n         * @throws { BusinessError } 62980113 - Unknown image format.\n         * The image data provided is not in a recognized or supported format, or it may be occorrupted.\n         * @throws { BusinessError } 62980115 - Invalid image parameter.\n         * @throws { BusinessError } 62980116 - Failed to decode the image.\n         * @throws { BusinessError } 62980118 - Failed to create the image plugin.\n         * @throws { BusinessError } 62980122 - Failed to decode the image header.\n         * @throws { BusinessError } 62980137 - Invalid media operation.\n         * @throws { BusinessError } 62980149 - Invalid MIME type for the image source.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the array of delay time in an image. This method uses a callback to return the array.\n         *\n         * @param { AsyncCallback<Array<number>> } callback Callback used to return the array.\n         * @throws { BusinessError } 62980096 - The operation failed. Possible cause: 1.Image upload exception.\n         * 2. Decoding process exception. 3. Insufficient memory.\n         * @throws { BusinessError } 62980110 - The image source data is incorrect.\n         * @throws { BusinessError } 62980111 - The image source data is incomplete.\n         * @throws { BusinessError } 62980112 - The image format does not match.\n         * @throws { BusinessError } 62980113 - Unknown image format.\n         * The image data provided is not in a recognized or supported format, or it may be occorrupted.\n         * @throws { BusinessError } 62980115 - Invalid image parameter.\n         * @throws { BusinessError } 62980116 - Failed to decode the image.\n         * @throws { BusinessError } 62980118 - Failed to create the image plugin.\n         * @throws { BusinessError } 62980122 - Failed to decode the image header.\n         * @throws { BusinessError } 62980137 - Invalid media operation.\n         * @throws { BusinessError } 62980149 - Invalid MIME type for the image source.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 12\n         */\n        getDelayTimeList(callback: AsyncCallback<Array<number>>): void;\n        /**\n         * Obtains the array of disposal type in a gif image. This method uses a promise to return the array.\n         *\n         * @returns { Promise<Array<number>> } A Promise instance used to return the array.\n         * @throws { BusinessError } 62980096 - The operation failed. Possible cause: 1.Image upload exception.\n         * 2. Decoding process exception. 3. Insufficient memory.\n         * @throws { BusinessError } 62980101 - The image data is abnormal.\n         * @throws { BusinessError } 62980137 - Invalid media operation.\n         * @throws { BusinessError } 62980149 - Invalid MIME type for the image source.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 12\n         */\n        getDisposalTypeList(): Promise<Array<number>>;\n        /**\n         * Obtains the count of frame in an image. This method uses a promise to return the number.\n         *\n         * @returns { Promise<number> } A Promise instance used to return the number.\n         * @throws { BusinessError } 62980096 - The operation failed. Possible cause: 1.Image upload exception.\n         * 2. Decoding process exception. 3. Insufficient memory.\n         * @throws { BusinessError } 62980110 - The image source data is incorrect.\n         * @throws { BusinessError } 62980111 - The image source data is incomplete.\n         * @throws { BusinessError } 62980112 - The image format does not match.\n         * @throws { BusinessError } 62980113 - Unknown image format.\n         * The image data provided is not in a recognized or supported format, or it may be occorrupted.\n         * @throws { BusinessError } 62980115 - Invalid image parameter.\n         * @throws { BusinessError } 62980116 - Failed to decode the image.\n         * @throws { BusinessError } 62980118 - Failed to create the image plugin.\n         * @throws { BusinessError } 62980122 - Failed to decode the image header.\n         * @throws { BusinessError } 62980137 - Invalid media operation.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the count of frame in an image. This method uses a promise to return the number.\n         *\n         * @returns { Promise<number> } A Promise instance used to return the number.\n         * @throws { BusinessError } 62980096 - The operation failed. Possible cause: 1.Image upload exception.\n         * 2. Decoding process exception. 3. Insufficient memory.\n         * @throws { BusinessError } 62980110 - The image source data is incorrect.\n         * @throws { BusinessError } 62980111 - The image source data is incomplete.\n         * @throws { BusinessError } 62980112 - The image format does not match.\n         * @throws { BusinessError } 62980113 - Unknown image format.\n         * The image data provided is not in a recognized or supported format, or it may be occorrupted.\n         * @throws { BusinessError } 62980115 - Invalid image parameter.\n         * @throws { BusinessError } 62980116 - Failed to decode the image.\n         * @throws { BusinessError } 62980118 - Failed to create the image plugin.\n         * @throws { BusinessError } 62980122 - Failed to decode the image header.\n         * @throws { BusinessError } 62980137 - Invalid media operation.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 12\n         */\n        getFrameCount(): Promise<number>;\n        /**\n         * Obtains the count of frame in an image. This method uses a callback to return the number.\n         *\n         * @param { AsyncCallback<number> } callback Callback used to return the number.\n         * @throws { BusinessError } 62980096 - The operation failed. Possible cause: 1.Image upload exception.\n         * 2. Decoding process exception. 3. Insufficient memory.\n         * @throws { BusinessError } 62980110 - The image source data is incorrect.\n         * @throws { BusinessError } 62980111 - The image source data is incomplete.\n         * @throws { BusinessError } 62980112 - The image format does not match.\n         * @throws { BusinessError } 62980113 - Unknown image format.\n         * The image data provided is not in a recognized or supported format, or it may be occorrupted.\n         * @throws { BusinessError } 62980115 - Invalid image parameter.\n         * @throws { BusinessError } 62980116 - Failed to decode the image.\n         * @throws { BusinessError } 62980118 - Failed to create the image plugin.\n         * @throws { BusinessError } 62980122 - Failed to decode the image header.\n         * @throws { BusinessError } 62980137 - Invalid media operation.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the count of frame in an image. This method uses a callback to return the number.\n         *\n         * @param { AsyncCallback<number> } callback Callback used to return the number.\n         * @throws { BusinessError } 62980096 - The operation failed. Possible cause: 1.Image upload exception.\n         * 2. Decoding process exception. 3. Insufficient memory.\n         * @throws { BusinessError } 62980110 - The image source data is incorrect.\n         * @throws { BusinessError } 62980111 - The image source data is incomplete.\n         * @throws { BusinessError } 62980112 - The image format does not match.\n         * @throws { BusinessError } 62980113 - Unknown image format.\n         * The image data provided is not in a recognized or supported format, or it may be occorrupted.\n         * @throws { BusinessError } 62980115 - Invalid image parameter.\n         * @throws { BusinessError } 62980116 - Failed to decode the image.\n         * @throws { BusinessError } 62980118 - Failed to create the image plugin.\n         * @throws { BusinessError } 62980122 - Failed to decode the image header.\n         * @throws { BusinessError } 62980137 - Invalid media operation.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 12\n         */\n        getFrameCount(callback: AsyncCallback<number>): void;\n        /**\n         * Obtains the value of a property in an image with the specified index. This method uses a\n         * promise to return the property value in a string.\n         *\n         * @param { PropertyKey } key - Name of the property whose value is to be obtained.\n         * @param { ImagePropertyOptions } options - Index of the image.\n         * @returns { Promise<string> } A Promise instance used to return the property value. If the operation fails, the default value is returned.\n         * @throws { BusinessError } 401 - Parameter error.Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types;3.Parameter verification failed;\n         * @throws { BusinessError } 62980096 - The operation failed. Possible cause: 1.Image upload exception.\n         * 2. Decoding process exception. 3. Insufficient memory.\n         * @throws { BusinessError } 62980103 - The image data is not supported.\n         * @throws { BusinessError } 62980110 - The image source data is incorrect.\n         * @throws { BusinessError } 62980111 - The image source data is incomplete.\n         * @throws { BusinessError } 62980112 - The image format does not match.\n         * @throws { BusinessError } 62980113 - Unknown image format.\n         * The image data provided is not in a recognized or supported format, or it may be occorrupted.\n         * @throws { BusinessError } 62980115 - Invalid image parameter.\n         * @throws { BusinessError } 62980116 - Failed to decode the image.\n         * @throws { BusinessError } 62980118 - Failed to create the image plugin.\n         * @throws { BusinessError } 62980122 - Failed to decode the image header.\n         * @throws { BusinessError } 62980123 - The image does not support EXIF decoding.\n         * @throws { BusinessError } 62980135 - The EXIF value is invalid.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Obtains the value of a property in an image with the specified index. This method uses a\n         * promise to return the property value in a string.\n         *\n         * @param { PropertyKey } key - Name of the property whose value is to be obtained.\n         * @param { ImagePropertyOptions } options - Index of the image.\n         * @returns { Promise<string> } A Promise instance used to return the property value. If the operation fails, the default value is returned.\n         * @throws { BusinessError } 401 - Parameter error.Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types;3.Parameter verification failed;\n         * @throws { BusinessError } 62980096 - The operation failed. Possible cause: 1.Image upload exception.\n         * 2. Decoding process exception. 3. Insufficient memory.\n         * @throws { BusinessError } 62980103 - The image data is not supported.\n         * @throws { BusinessError } 62980110 - The image source data is incorrect.\n         * @throws { BusinessError } 62980111 - The image source data is incomplete.\n         * @throws { BusinessError } 62980112 - The image format does not match.\n         * @throws { BusinessError } 62980113 - Unknown image format.\n         * The image data provided is not in a recognized or supported format, or it may be occorrupted.\n         * @throws { BusinessError } 62980115 - Invalid image parameter.\n         * @throws { BusinessError } 62980116 - Failed to decode the image.\n         * @throws { BusinessError } 62980118 - Failed to create the image plugin.\n         * @throws { BusinessError } 62980122 - Failed to decode the image header.\n         * @throws { BusinessError } 62980123 - The image does not support EXIF decoding.\n         * @throws { BusinessError } 62980135 - The EXIF value is invalid.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 12\n         */\n        getImageProperty(key: PropertyKey, options?: ImagePropertyOptions): Promise<string>;\n        /**\n         * Obtains the value of a property in an image with the specified index. This method uses a\n         * promise to return the property value in a string.\n         *\n         * @param { string } key Name of the property whose value is to be obtained.\n         * @param { GetImagePropertyOptions } options Index of the image.\n         * @returns { Promise<string> } A Promise instance used to return the property value. If the operation fails, the default value is returned.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @since 7\n         * @deprecated since 11\n         * @useinstead image.ImageSource#getImageProperty\n         */\n        /**\n         * Obtains the value of a property in an image with the specified index. This method uses a\n         * promise to return the property value in a string.\n         *\n         * @param { string } key Name of the property whose value is to be obtained.\n         * @param { GetImagePropertyOptions } options Index of the image.\n         * @returns { Promise<string> } A Promise instance used to return the property value. If the operation fails, the default value is returned.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 10\n         * @deprecated since 11\n         * @useinstead image.ImageSource#getImageProperty\n         */\n        getImageProperty(key: string, options?: GetImagePropertyOptions): Promise<string>;\n        /**\n         * Obtains the value of a property in this image. This method uses a callback to return the\n         * property value in a string.\n         *\n         * @param { string } key Name of the property whose value is to be obtained.\n         * @param { AsyncCallback<string> } callback Callback used to return the property value. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @since 7\n         * @deprecated since 11\n         * @useinstead image.ImageSource#getImageProperty\n         */\n        /**\n         * Obtains the value of a property in this image. This method uses a callback to return the\n         * property value in a string.\n         *\n         * @param { string } key Name of the property whose value is to be obtained.\n         * @param { AsyncCallback<string> } callback Callback used to return the property value. If the operation fails, an error message is returned.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 10\n         * @deprecated since 11\n         * @useinstead image.ImageSource#getImageProperty\n         */\n        getImageProperty(key: string, callback: AsyncCallback<string>): void;\n        /**\n         * Obtains the value of a property in an image with the specified index. This method uses\n         * a callback to return the property value in a string.\n         *\n         * @param { string } key Name of the property whose value is to be obtained.\n         * @param { GetImagePropertyOptions } options Index of the image.\n         * @param { AsyncCallback<string> } callback Callback used to return the property value. If the operation fails, the default value is returned.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @since 7\n         * @deprecated since 11\n         * @useinstead image.ImageSource#getImageProperty\n         */\n        /**\n         * Obtains the value of a property in an image with the specified index. This method uses\n         * a callback to return the property value in a string.\n         *\n         * @param { string } key Name of the property whose value is to be obtained.\n         * @param { GetImagePropertyOptions } options Index of the image.\n         * @param { AsyncCallback<string> } callback Callback used to return the property value. If the operation fails, the default value is returned.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 10\n         * @deprecated since 11\n         * @useinstead image.ImageSource#getImageProperty\n         */\n        getImageProperty(key: string, options: GetImagePropertyOptions, callback: AsyncCallback<string>): void;\n        /**\n         * Obtains the value of properties in an image. This method uses a promise to return the property values in array\n         * of records.\n         *\n         * @param { Array<PropertyKey> } key - Name of the properties whose value is to be obtained.\n         * @returns { Promise<Record<PropertyKey, string|null>> } Array of Records instance used to return the\n         * property values. If the operation fails, the null is returned.\n         * @throws { BusinessError } 401 - Parameter error.Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types; 3.Parameter verification failed;\n         * @throws { BusinessError } 62980096 - The operation failed. Possible cause: 1.Image upload exception.\n         * 2. Decoding process exception. 3. Insufficient memory.\n         * @throws { BusinessError } 62980110 - The image source data is incorrect.\n         * @throws { BusinessError } 62980113 - Unknown image format.\n         * The image data provided is not in a recognized or supported format, or it may be occorrupted.\n         * @throws { BusinessError } 62980116 - Failed to decode the image.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 12\n         */\n        getImageProperties(key: Array<PropertyKey>): Promise<Record<PropertyKey, string | null>>;\n        /**\n         * Obtains the value of a property in the image.\n         *\n         * @param { PropertyKey } key Property name.\n         * @returns { string } Value of the property.\n         * @throws { BusinessError } 7700101  - Bad source. e.g.,1. Image has invalid width or height. 2. Image\n         * source incomplete. 3. Read image data failed. 4. Codec create failed.\n         * @throws { BusinessError } 7700102 - Unsupported MIME type.\n         * @throws { BusinessError } 7700202 - Unsupported metadata. For example, key is not supported.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @since 20\n         */\n        getImagePropertySync(key: PropertyKey): string;\n        /**\n         * Modify the value of a property in an image with the specified key. This method uses a\n         * promise to return the property value in a string.\n         *\n         * @param { PropertyKey } key - Name of the property whose value is to be modified.\n         * @param { string } value - The value to be set to property.\n         * @returns { Promise<void> } A Promise instance used to return the property value.\n         * @throws { BusinessError } 401 - Parameter error.Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types;\n         * @throws { BusinessError } 62980123 - The image does not support EXIF decoding.\n         * @throws { BusinessError } 62980133 - The EXIF data is out of range.\n         * @throws { BusinessError } 62980135 - The EXIF value is invalid.\n         * @throws { BusinessError } 62980146 - The EXIF data failed to be written to the file.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Modify the value of a property in an image with the specified key. This method uses a\n         * promise to return the property value in a string.\n         *\n         * @param { PropertyKey } key - Name of the property whose value is to be modified.\n         * @param { string } value - The value to be set to property.\n         * @returns { Promise<void> } A Promise instance used to return the property value.\n         * @throws { BusinessError } 401 - Parameter error.Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types;\n         * @throws { BusinessError } 62980123 - The image does not support EXIF decoding.\n         * @throws { BusinessError } 62980133 - The EXIF data is out of range.\n         * @throws { BusinessError } 62980135 - The EXIF value is invalid.\n         * @throws { BusinessError } 62980146 - The EXIF data failed to be written to the file.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 12\n         */\n        modifyImageProperty(key: PropertyKey, value: string): Promise<void>;\n        /**\n         * Modify the value of a property in an image with the specified key. This method uses a\n         * promise to return the property value in a string.\n         *\n         * @param { string } key Name of the property whose value is to be modified.\n         * @param { string } value The value to be set to property.\n         * @returns { Promise<void> } A Promise instance used to return the property value.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @since 9\n         * @deprecated since 11\n         * @useinstead image.ImageSource#modifyImageProperty\n         */\n        /**\n         * Modify the value of a property in an image with the specified key. This method uses a\n         * promise to return the property value in a string.\n         *\n         * @param { string } key Name of the property whose value is to be modified.\n         * @param { string } value The value to be set to property.\n         * @returns { Promise<void> } A Promise instance used to return the property value.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 10\n         * @deprecated since 11\n         * @useinstead image.ImageSource#modifyImageProperty\n         */\n        modifyImageProperty(key: string, value: string): Promise<void>;\n        /**\n         * Modify the value of a property in an image with the specified key. This method uses a callback to return the\n         * property value in a string.\n         *\n         * @param { string } key Name of the property whose value is to be obtained.\n         * @param { string } value The value to be set to property.\n         * @param { AsyncCallback<void> } callback Callback to return the operation result.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @since 9\n         * @deprecated since 11\n         * @useinstead image.ImageSource#modifyImageProperty\n         */\n        /**\n         * Modify the value of a property in an image with the specified key. This method uses a callback to return the\n         * property value in a string.\n         *\n         * @param { string } key Name of the property whose value is to be obtained.\n         * @param { string } value The value to be set to property.\n         * @param { AsyncCallback<void> } callback Callback to return the operation result.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 10\n         * @deprecated since 11\n         * @useinstead image.ImageSource#modifyImageProperty\n         */\n        modifyImageProperty(key: string, value: string, callback: AsyncCallback<void>): void;\n        /**\n         * Modify the value of properties in an image with the specified keys.\n         *\n         * @param { Record<PropertyKey, string|null> } records - Array of the property Records whose values are to\n         * be modified.\n         * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an\n         * error message is returned.\n         * @throws { BusinessError } 401 - Parameter error.Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types; 3.Parameter verification failed;\n         * @throws { BusinessError } 62980123 - The image does not support EXIF decoding.\n         * @throws { BusinessError } 62980133 - The EXIF data is out of range.\n         * @throws { BusinessError } 62980135 - The EXIF value is invalid.\n         * @throws { BusinessError } 62980146 - The EXIF data failed to be written to the file.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 12\n         */\n        modifyImageProperties(records: Record<PropertyKey, string | null>): Promise<void>;\n        /**\n         * Update the data in the incremental ImageSource.\n         *\n         * @param { ArrayBuffer } buf The data to be updated.\n         * @param { boolean } isFinished If is it finished.\n         * @param { number } value The offset of data.\n         * @param { number } length The length fo buf.\n         * @returns { Promise<void> } A Promise instance used to return the property value.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @since 9\n         */\n        /**\n         * Update the data in the incremental ImageSource.\n         *\n         * @param { ArrayBuffer } buf The data to be updated.\n         * @param { boolean } isFinished If is it finished.\n         * @param { number } value The offset of data.\n         * @param { number } length The length fo buf.\n         * @returns { Promise<void> } A Promise instance used to return the property value.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Update the data in the incremental ImageSource.\n         *\n         * @param { ArrayBuffer } buf The data to be updated.\n         * @param { boolean } isFinished If is it finished.\n         * @param { number } offset The offset of data.\n         * @param { number } length The length fo buf.\n         * @returns { Promise<void> } A Promise instance used to return the property value.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 11\n         */\n        updateData(buf: ArrayBuffer, isFinished: boolean, offset: number, length: number): Promise<void>;\n        /**\n         * Update the data in the incremental ImageSource.\n         *\n         * @param { ArrayBuffer } buf The data to be updated.\n         * @param { boolean } isFinished If is it finished.\n         * @param { number } value The offset of data.\n         * @param { number } length The length fo buf.\n         * @param { AsyncCallback<void> } callback Callback to return the operation result.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @since 9\n         */\n        /**\n         * Update the data in the incremental ImageSource.\n         *\n         * @param { ArrayBuffer } buf The data to be updated.\n         * @param { boolean } isFinished If is it finished.\n         * @param { number } value The offset of data.\n         * @param { number } length The length fo buf.\n         * @param { AsyncCallback<void> } callback Callback to return the operation result.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Update the data in the incremental ImageSource.\n         *\n         * @param { ArrayBuffer } buf The data to be updated.\n         * @param { boolean } isFinished If is it finished.\n         * @param { number } offset The offset of data.\n         * @param { number } length The length fo buf.\n         * @param { AsyncCallback<void> } callback Callback to return the operation result.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 11\n         */\n        updateData(buf: ArrayBuffer, isFinished: boolean, offset: number, length: number, callback: AsyncCallback<void>): void;\n        /**\n         * Releases an ImageSource instance and uses a callback to return the result.\n         *\n         * @param { AsyncCallback<void> } callback Callback to return the operation result.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @since 6\n         */\n        /**\n         * Releases an ImageSource instance and uses a callback to return the result.\n         *\n         * @param { AsyncCallback<void> } callback Callback to return the operation result.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 10\n         */\n        release(callback: AsyncCallback<void>): void;\n        /**\n         * Releases an ImageSource instance and uses a promise to return the result.\n         *\n         * @returns { Promise<void> } A Promise instance used to return the operation result.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @since 6\n         */\n        /**\n         * Releases an ImageSource instance and uses a promise to return the result.\n         *\n         * @returns { Promise<void> } A Promise instance used to return the operation result.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 10\n         */\n        release(): Promise<void>;\n        /**\n         * Creates a Picture object based on image decoding parameters. This method uses a promise to\n         * return the object.\n         *\n         * @param { DecodingOptionsForPicture } options Image decoding parameters.\n         * @returns { Promise<Picture> } A Promise instance used to return the Picture object.\n         * @throws { BusinessError } 401 - Parameter error.Possible causes: 1.Mandatory parameters are left unspecified.\n         * 2.Incorrect parameter types; 3.Parameter verification failed.\n         * @throws { BusinessError } 7700301 - Failed to decode image.\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @since 13\n         */\n        createPicture(options?: DecodingOptionsForPicture): Promise<Picture>;\n        /**\n         * Supported image formats.\n         *\n         * @type { Array<string> }\n         * @readonly\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @since 6\n         */\n        /**\n         * Supported image formats.\n         *\n         * @type { Array<string> }\n         * @readonly\n         * @syscap SystemCapability.Multimedia.Image.ImageSource\n         * @crossplatform\n         * @since 10\n         */\n        readonly supportedFormats: Array<string>;\n    }\n    /**\n     * ImagePacker instance.\n     *\n     * @typedef ImagePacker\n     * @syscap SystemCapability.Multimedia.Image.ImagePacker\n     * @since 6\n     */\n    /**\n     * ImagePacker instance.\n     *\n     * @typedef ImagePacker\n     * @syscap SystemCapability.Multimedia.Image.ImagePacker\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * ImagePacker instance.\n     *\n     * @typedef ImagePacker\n     * @syscap SystemCapability.Multimedia.Image.ImagePacker\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    interface ImagePacker {\n        /**\n         * Compresses or packs an image and uses a callback to return the result.\n         *\n         * @param { ImageSource } source Image to be processed.\n         * @param { PackingOption } option Option for image packing.\n         * @param { AsyncCallback<ArrayBuffer> } callback Callback used to return the packed data.\n         * @syscap SystemCapability.Multimedia.Image.ImagePacker\n         * @since 6\n         * @deprecated since 13\n         * @useinstead image.ImagePacker#packToData\n         */\n        /**\n         * Compresses or packs an image and uses a callback to return the result.\n         *\n         * @param { ImageSource } source Image to be processed.\n         * @param { PackingOption } option Option for image packing.\n         * @param { AsyncCallback<ArrayBuffer> } callback Callback used to return the packed data.\n         * @syscap SystemCapability.Multimedia.Image.ImagePacker\n         * @crossplatform\n         * @since 10\n         * @deprecated since 13\n         * @useinstead image.ImagePacker#packToData\n         */\n        /**\n         * Compresses or packs an image and uses a callback to return the result.\n         *\n         * @param { ImageSource } source Image to be processed.\n         * @param { PackingOption } option Option for image packing.\n         * @param { AsyncCallback<ArrayBuffer> } callback Callback used to return the packed data.\n         * @syscap SystemCapability.Multimedia.Image.ImagePacker\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         * @deprecated since 13\n         * @useinstead image.ImagePacker#packToData\n         */\n        packing(source: ImageSource, option: PackingOption, callback: AsyncCallback<ArrayBuffer>): void;\n        /**\n         * Compresses or packs an image and uses a promise to return the result.\n         *\n         * @param { ImageSource } source Image to be processed.\n         * @param { PackingOption } option Option for image packing.\n         * @returns { Promise<ArrayBuffer> } A Promise instance used to return the compressed or packed data.\n         * @syscap SystemCapability.Multimedia.Image.ImagePacker\n         * @since 6\n         * @deprecated since 13\n         * @useinstead image.ImagePacker#packToData\n         */\n        /**\n         * Compresses or packs an image and uses a promise to return the result.\n         *\n         * @param { ImageSource } source Image to be processed.\n         * @param { PackingOption } option Option for image packing.\n         * @returns { Promise<ArrayBuffer> } A Promise instance used to return the compressed or packed data.\n         * @syscap SystemCapability.Multimedia.Image.ImagePacker\n         * @crossplatform\n         * @since 10\n         * @deprecated since 13\n         * @useinstead image.ImagePacker#packToData\n         */\n        /**\n         * Compresses or packs an image and uses a promise to return the result.\n         *\n         * @param { ImageSource } source Image to be processed.\n         * @param { PackingOption } option Option for image packing.\n         * @returns { Promise<ArrayBuffer> } A Promise instance used to return the compressed or packed data.\n         * @syscap SystemCapability.Multimedia.Image.ImagePacker\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         * @deprecated since 13\n         * @useinstead image.ImagePacker#packToData\n         */\n        packing(source: ImageSource, option: PackingOption): Promise<ArrayBuffer>;\n        /**\n         * Compresses or packs an image and uses a promise to return the result.\n         *\n         * @param { ImageSource } source Image to be processed.\n         * @param { PackingOption } options Option for image packing.\n         * @returns { Promise<ArrayBuffer> } A Promise instance used to return the compressed or packed data.\n         * @throws { BusinessError } 401 - If the parameter is invalid.\n         * @throws { BusinessError } 62980096 - The operation failed. Possible cause: 1.Image upload exception.\n         * 2. Decoding process exception. 3. Insufficient memory.\n         * @throws { BusinessError } 62980101 - The image data is abnormal.\n         * @throws { BusinessError } 62980106 - The image data is too large. This status code is thrown when an error occurs during the process of checking size.\n         * @throws { BusinessError } 62980113 - Unknown image format.\n         * The image data provided is not in a recognized or supported format, or it may be occorrupted.\n         * @throws { BusinessError } 62980119 - Failed to encode the image.\n         * @throws { BusinessError } 62980120 - Add pixelmap out of range.\n         * @throws { BusinessError } 62980172 - Failed to encode icc.\n         * @throws { BusinessError } 62980252 - Failed to create surface.\n         * @syscap SystemCapability.Multimedia.Image.ImagePacker\n         * @crossplatform\n         * @atomicservice\n         * @since 13\n         */\n        packToData(source: ImageSource, options: PackingOption): Promise<ArrayBuffer>;\n        /**\n         * Compresses or packs an image and uses a callback to return the result.\n         *\n         * @param { PixelMap } source PixelMap to be processed.\n         * @param { PackingOption } option Option for image packing.\n         * @param { AsyncCallback<ArrayBuffer> } callback Callback used to return the packed data.\n         * @syscap SystemCapability.Multimedia.Image.ImagePacker\n         * @since 8\n         * @deprecated since 13\n         * @useinstead image.ImagePacker#packToData\n         */\n        /**\n         * Compresses or packs an image and uses a callback to return the result.\n         *\n         * @param { PixelMap } source PixelMap to be processed.\n         * @param { PackingOption } option Option for image packing.\n         * @param { AsyncCallback<ArrayBuffer> } callback Callback used to return the packed data.\n         * @syscap SystemCapability.Multimedia.Image.ImagePacker\n         * @crossplatform\n         * @since 10\n         * @deprecated since 13\n         * @useinstead image.ImagePacker#packToData\n         */\n        /**\n         * Compresses or packs an image and uses a callback to return the result.\n         *\n         * @param { PixelMap } source PixelMap to be processed.\n         * @param { PackingOption } option Option for image packing.\n         * @param { AsyncCallback<ArrayBuffer> } callback Callback used to return the packed data.\n         * @syscap SystemCapability.Multimedia.Image.ImagePacker\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         * @deprecated since 13\n         * @useinstead image.ImagePacker#packToData\n         */\n        packing(source: PixelMap, option: PackingOption, callback: AsyncCallback<ArrayBuffer>): void;\n        /**\n         * Compresses or packs an image and uses a promise to return the result.\n         *\n         * @param { PixelMap } source PixelMap to be processed.\n         * @param { PackingOption } option Option for image packing.\n         * @returns { Promise<ArrayBuffer> } A Promise instance used to return the compressed or packed data.\n         * @syscap SystemCapability.Multimedia.Image.ImagePacker\n         * @since 8\n         * @deprecated since 13\n         * @useinstead image.ImagePacker#packToData\n         */\n        /**\n         * Compresses or packs an image and uses a promise to return the result.\n         *\n         * @param { PixelMap } source PixelMap to be processed.\n         * @param { PackingOption } option Option for image packing.\n         * @returns { Promise<ArrayBuffer> } A Promise instance used to return the compressed or packed data.\n         * @syscap SystemCapability.Multimedia.Image.ImagePacker\n         * @crossplatform\n         * @since 10\n         * @deprecated since 13\n         * @useinstead image.ImagePacker#packToData\n         */\n        /**\n         * Compresses or packs an image and uses a promise to return the result.\n         *\n         * @param { PixelMap } source PixelMap to be processed.\n         * @param { PackingOption } option Option for image packing.\n         * @returns { Promise<ArrayBuffer> } A Promise instance used to return the compressed or packed data.\n         * @syscap SystemCapability.Multimedia.Image.ImagePacker\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         * @deprecated since 13\n         * @useinstead image.ImagePacker#packToData\n         */\n        packing(source: PixelMap, option: PackingOption): Promise<ArrayBuffer>;\n        /**\n         * Compresses or packs an image and uses a promise to return the result.\n         *\n         * @param { PixelMap } source PixelMap to be processed.\n         * @param { PackingOption } options Option for image packing.\n         * @returns { Promise<ArrayBuffer> } A Promise instance used to return the compressed or packed data.\n         * @throws { BusinessError } 401 - If the parameter is invalid.\n         * @throws { BusinessError } 62980096 - The operation failed. Possible cause: 1.Image upload exception.\n         * 2. Decoding process exception. 3. Insufficient memory.\n         * @throws { BusinessError } 62980101 - The image data is abnormal.\n         * @throws { BusinessError } 62980106 - The image data is too large. This status code is thrown when an error occurs during the process of checking size.\n         * @throws { BusinessError } 62980113 - Unknown image format.\n         * The image data provided is not in a recognized or supported format, or it may be occorrupted.\n         * @throws { BusinessError } 62980119 - Failed to encode the image.\n         * @throws { BusinessError } 62980120 - Add pixelmap out of range.\n         * @throws { BusinessError } 62980172 - Failed to encode icc.\n         * @throws { BusinessError } 62980252 - Failed to create surface.\n         * @syscap SystemCapability.Multimedia.Image.ImagePacker\n         * @crossplatform\n         * @atomicservice\n         * @since 13\n         */\n        packToData(source: PixelMap, options: PackingOption): Promise<ArrayBuffer>;\n        /**\n         * Compresses a Pixelmap sequence into gif.\n         *\n         * @param { Array<PixelMap> } pixelmapSequence PixelMaps to be encoded.\n         * @param { PackingOptionsForSequence } options Options for image packing.\n         * @returns { Promise<ArrayBuffer> } encoded buffer.\n         * @throws { BusinessError } 401 - Parameter error.Possible causes: 1.Mandatory parameters are left unspecified.\n         * 2.Incorrect parameter types;3.Parameter verification failed.\n         * @throws { BusinessError } 7800201 - Unsupported packing options.\n         * @throws { BusinessError } 7800301 - Failed to encode image.\n         * @syscap SystemCapability.Multimedia.Image.ImagePacker\n         * @since 18\n         */\n        packToDataFromPixelmapSequence(pixelmapSequence: Array<PixelMap>, options: PackingOptionsForSequence): Promise<ArrayBuffer>;\n        /**\n         * Compresses or packs an image into a file and uses a callback to return the result.\n         *\n         * @param { ImageSource } source Image to be processed.\n         * @param { number } fd ID of a file descriptor.\n         * @param { PackingOption } options Options for image packing.\n         * @param { AsyncCallback<void> } callback Callback used to return the operation result.\n         * @throws { BusinessError } 62980096 - The operation failed. Possible cause: 1.Image upload exception.\n         * 2. Decoding process exception. 3. Insufficient memory.\n         * @throws { BusinessError } 62980101 - The image data is abnormal.\n         * @throws { BusinessError } 62980106 - The image data is too large. This status code is thrown when an error occurs during the process of checking size.\n         * @throws { BusinessError } 62980113 - Unknown image format.\n         * The image data provided is not in a recognized or supported format, or it may be occorrupted.\n         * @throws { BusinessError } 62980115 - Invalid input parameter.\n         * @throws { BusinessError } 62980119 - Failed to encode the image.\n         * @throws { BusinessError } 62980120 - Add pixelmap out of range.\n         * @throws { BusinessError } 62980172 - Failed to encode icc.\n         * @throws { BusinessError } 62980252 - Failed to create surface.\n         * @syscap SystemCapability.Multimedia.Image.ImagePacker\n         * @crossplatform\n         * @since 11\n         */\n        packToFile(source: ImageSource, fd: number, options: PackingOption, callback: AsyncCallback<void>): void;\n        /**\n         * Compresses or packs an image into a file and uses a promise to return the result.\n         *\n         * @param { ImageSource } source Image to be processed.\n         * @param { number } fd ID of a file descriptor.\n         * @param { PackingOption } options Options for image packing.\n         * @returns { Promise<void> } A Promise instance used to return the operation result.\n         * @throws { BusinessError } 62980096 - The operation failed. Possible cause: 1.Image upload exception.\n         * 2. Decoding process exception. 3. Insufficient memory.\n         * @throws { BusinessError } 62980101 - The image data is abnormal.\n         * @throws { BusinessError } 62980106 - The image data is too large. This status code is thrown when an error occurs during the process of checking size.\n         * @throws { BusinessError } 62980113 - Unknown image format.\n         * The image data provided is not in a recognized or supported format, or it may be occorrupted.\n         * @throws { BusinessError } 62980115 - Invalid input parameter.\n         * @throws { BusinessError } 62980119 - Failed to encode the image.\n         * @throws { BusinessError } 62980120 - Add pixelmap out of range.\n         * @throws { BusinessError } 62980172 - Failed to encode icc.\n         * @throws { BusinessError } 62980252 - Failed to create surface.\n         * @syscap SystemCapability.Multimedia.Image.ImagePacker\n         * @crossplatform\n         * @since 11\n         */\n        packToFile(source: ImageSource, fd: number, options: PackingOption): Promise<void>;\n        /**\n         * Compresses or packs an image into a file and uses a callback to return the result.\n         *\n         * @param { PixelMap } source PixelMap to be processed.\n         * @param { number } fd ID of a file descriptor.\n         * @param { PackingOption } options Options for image packing.\n         * @param { AsyncCallback<void> } callback Callback used to return the operation result.\n         * @throws { BusinessError } 62980096 - The operation failed. Possible cause: 1.Image upload exception.\n         * 2. Decoding process exception. 3. Insufficient memory.\n         * @throws { BusinessError } 62980101 - The image data is abnormal.\n         * @throws { BusinessError } 62980106 - The image data is too large. This status code is thrown when an error occurs during the process of checking size.\n         * @throws { BusinessError } 62980113 - Unknown image format.\n         * The image data provided is not in a recognized or supported format, or it may be occorrupted.\n         * @throws { BusinessError } 62980115 - Invalid input parameter.\n         * @throws { BusinessError } 62980119 - Failed to encode the image.\n         * @throws { BusinessError } 62980120 - Add pixelmap out of range.\n         * @throws { BusinessError } 62980172 - Failed to encode icc.\n         * @throws { BusinessError } 62980252 - Failed to create surface.\n         * @syscap SystemCapability.Multimedia.Image.ImagePacker\n         * @crossplatform\n         * @since 11\n         */\n        packToFile(source: PixelMap, fd: number, options: PackingOption, callback: AsyncCallback<void>): void;\n        /**\n         * Compresses or packs an image into a file and uses a promise to return the result.\n         *\n         * @param { PixelMap } source PixelMap to be processed.\n         * @param { number } fd ID of a file descriptor.\n         * @param { PackingOption } options Options for image packing.\n         * @returns { Promise<void> } A Promise instance used to return the operation result.\n         * @throws { BusinessError } 62980096 - The operation failed. Possible cause: 1.Image upload exception.\n         * 2. Decoding process exception. 3. Insufficient memory.\n         * @throws { BusinessError } 62980101 - The image data is abnormal.\n         * @throws { BusinessError } 62980106 - The image data is too large. This status code is thrown when an error occurs during the process of checking size.\n         * @throws { BusinessError } 62980113 - Unknown image format.\n         * The image data provided is not in a recognized or supported format, or it may be occorrupted.\n         * @throws { BusinessError } 62980115 - Invalid input parameter.\n         * @throws { BusinessError } 62980119 - Failed to encode the image.\n         * @throws { BusinessError } 62980120 - Add pixelmap out of range.\n         * @throws { BusinessError } 62980172 - Failed to encode icc.\n         * @throws { BusinessError } 62980252 - Failed to create surface.\n         * @syscap SystemCapability.Multimedia.Image.ImagePacker\n         * @crossplatform\n         * @since 11\n         */\n        packToFile(source: PixelMap, fd: number, options: PackingOption): Promise<void>;\n        /**\n         * Compresses a Pixelmap sequence into gif.\n         *\n         * @param { Array<PixelMap> } pixelmapSequence PixelMaps to be encoded.\n         * @param { number } fd File descriptor of the output encoded file.\n         * @param { PackingOptionsForSequence } options Options for image packing.\n         * @returns { Promise<void> } void.\n         * @throws { BusinessError } 401 - Parameter error.Possible causes: 1.Mandatory parameters are left unspecified.\n         * 2.Incorrect parameter types;3.Parameter verification failed.\n         * @throws { BusinessError } 7800201 - Unsupported packing options.\n         * @throws { BusinessError } 7800301 - Failed to encode image.\n         * @syscap SystemCapability.Multimedia.Image.ImagePacker\n         * @since 18\n         */\n        packToFileFromPixelmapSequence(pixelmapSequence: Array<PixelMap>, fd: number, options: PackingOptionsForSequence): Promise<void>;\n        /**\n        * Releases an ImagePacker instance and uses a callback to return the result.\n        *\n        * @param { AsyncCallback<void> } callback Callback to return the operation result.\n        * @syscap SystemCapability.Multimedia.Image.ImagePacker\n        * @since 6\n        */\n        /**\n         * Releases an ImagePacker instance and uses a callback to return the result.\n         *\n         * @param { AsyncCallback<void> } callback Callback to return the operation result.\n         * @syscap SystemCapability.Multimedia.Image.ImagePacker\n         * @crossplatform\n         * @since 10\n         */\n        release(callback: AsyncCallback<void>): void;\n        /**\n         * Releases an ImagePacker instance and uses a promise to return the result.\n         *\n         * @returns { Promise<void> } A Promise instance used to return the operation result.\n         * @syscap SystemCapability.Multimedia.Image.ImagePacker\n         * @since 6\n         */\n        /**\n         * Releases an ImagePacker instance and uses a promise to return the result.\n         *\n         * @returns { Promise<void> } A Promise instance used to return the operation result.\n         * @syscap SystemCapability.Multimedia.Image.ImagePacker\n         * @crossplatform\n         * @since 10\n         */\n        release(): Promise<void>;\n        /**\n         * Compresses or packs an image and uses a promise to return the result.\n         *\n         * @param { Picture } picture Picture to be processed.\n         * @param { PackingOption } options Option for image packing.\n         * @returns { Promise<ArrayBuffer> } A Promise instance used to return the compressed or packed data.\n         * @throws { BusinessError } 401 - Parameter error.Possible causes: 1.Mandatory parameters are left unspecified.\n         * 2.Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 7800301 - Encode failed.\n         * @syscap SystemCapability.Multimedia.Image.ImagePacker\n         * @since 13\n         */\n        packing(picture: Picture, options: PackingOption): Promise<ArrayBuffer>;\n        /**\n         * Compresses or packs an image into a file and uses a promise to return the result.\n         *\n         * @param { Picture } picture Picture to be processed.\n         * @param { number } fd ID of a file descriptor.\n         * @param { PackingOption } options Options for image packing.\n         * @returns { Promise<void> } A Promise instance used to return the operation result.\n         * @throws { BusinessError } 401 - Parameter error.Possible causes: 1.Mandatory parameters are left unspecified.\n         * 2.Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 7800301 - Encode failed.\n         * @syscap SystemCapability.Multimedia.Image.ImagePacker\n         * @since 13\n         */\n        packToFile(picture: Picture, fd: number, options: PackingOption): Promise<void>;\n        /**\n         * Supported image formats.\n         *\n         * @type { Array<string> }\n         * @readonly\n         * @syscap SystemCapability.Multimedia.Image.ImagePacker\n         * @since 6\n         */\n        /**\n         * Supported image formats.\n         *\n         * @type { Array<string> }\n         * @readonly\n         * @syscap SystemCapability.Multimedia.Image.ImagePacker\n         * @crossplatform\n         * @since 10\n         */\n        readonly supportedFormats: Array<string>;\n    }\n    /**\n     * Provides basic image operations, including obtaining image information, and reading and writing image data.\n     *\n     * @typedef Image\n     * @syscap SystemCapability.Multimedia.Image.Core\n     * @since 9\n     */\n    interface Image {\n        /**\n         * Sets or gets the image area to crop, default is size.\n         *\n         * @type { Region }\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        clipRect: Region;\n        /**\n         * Image size.\n         *\n         * @type { Size }\n         * @readonly\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        readonly size: Size;\n        /**\n         * Image format.\n         *\n         * @type { number }\n         * @readonly\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        readonly format: number;\n        /**\n         * Image timestamp.\n         *\n         * @type { number }\n         * @readonly\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 12\n         */\n        readonly timestamp: number;\n        /**\n         * Get component buffer from image and uses a callback to return the result.\n         *\n         * @param { ComponentType } componentType The component type of image.\n         * @param { AsyncCallback<Component> } callback Callback used to return the component buffer.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        getComponent(componentType: ComponentType, callback: AsyncCallback<Component>): void;\n        /**\n         * Get component buffer from image and uses a promise to return the result.\n         *\n         * @param { ComponentType } componentType The component type of image.\n         * @returns { Promise<Component> } A Promise instance used to return the component buffer.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        getComponent(componentType: ComponentType): Promise<Component>;\n        /**\n         * Release current image to receive another and uses a callback to return the result.\n         *\n         * @param { AsyncCallback<void> } callback Callback to return the operation result.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        release(callback: AsyncCallback<void>): void;\n        /**\n         * Release current image to receive another and uses a promise to return the result.\n         *\n         * @returns { Promise<void> } A Promise instance used to return the operation result.\n         * @syscap SystemCapability.Multimedia.Image.Core\n         * @since 9\n         */\n        release(): Promise<void>;\n    }\n    /**\n     * Image receiver object.\n     *\n     * @typedef ImageReceiver\n     * @syscap SystemCapability.Multimedia.Image.ImageReceiver\n     * @since 9\n     */\n    interface ImageReceiver {\n        /**\n         * Image size.\n         *\n         * @type { Size }\n         * @readonly\n         * @syscap SystemCapability.Multimedia.Image.ImageReceiver\n         * @since 9\n         */\n        readonly size: Size;\n        /**\n         * Image capacity.\n         *\n         * @type { number }\n         * @readonly\n         * @syscap SystemCapability.Multimedia.Image.ImageReceiver\n         * @since 9\n         */\n        readonly capacity: number;\n        /**\n         * Image format.\n         *\n         * @type { ImageFormat }\n         * @readonly\n         * @syscap SystemCapability.Multimedia.Image.ImageReceiver\n         * @since 9\n         */\n        readonly format: ImageFormat;\n        /**\n         * Get an id which indicates a surface and can be used to set to Camera or other component can receive a surface\n         * and uses a callback to return the result.\n         *\n         * @param { AsyncCallback<string> } callback Callback used to return the surface id.\n         * @syscap SystemCapability.Multimedia.Image.ImageReceiver\n         * @since 9\n         */\n        getReceivingSurfaceId(callback: AsyncCallback<string>): void;\n        /**\n         * Get an id which indicates a surface and can be used to set to Camera or other component can receive a surface\n         * and uses a promise to return the result.\n         *\n         * @returns { Promise<string> } A Promise instance used to return the surface id.\n         * @syscap SystemCapability.Multimedia.Image.ImageReceiver\n         * @since 9\n         */\n        getReceivingSurfaceId(): Promise<string>;\n        /**\n         * Get lasted image from receiver and uses a callback to return the result.\n         *\n         * @param { AsyncCallback<Image> } callback Callback used to return the latest image.\n         * @syscap SystemCapability.Multimedia.Image.ImageReceiver\n         * @since 9\n         */\n        readLatestImage(callback: AsyncCallback<Image>): void;\n        /**\n         * Get lasted image from receiver and uses a promise to return the result.\n         *\n         * @returns { Promise<Image> } A Promise instance used to return the latest image.\n         * @syscap SystemCapability.Multimedia.Image.ImageReceiver\n         * @since 9\n         */\n        readLatestImage(): Promise<Image>;\n        /**\n         * Get next image from receiver and uses a callback to return the result.\n         *\n         * @param { AsyncCallback<Image> } callback Callback used to return the next image.\n         * @syscap SystemCapability.Multimedia.Image.ImageReceiver\n         * @since 9\n         */\n        readNextImage(callback: AsyncCallback<Image>): void;\n        /**\n         * Get next image from receiver and uses a promise to return the result.\n         *\n         * @returns { Promise<Image> } A Promise instance used to return the next image.\n         * @syscap SystemCapability.Multimedia.Image.ImageReceiver\n         * @since 9\n         */\n        readNextImage(): Promise<Image>;\n        /**\n         * Subscribe callback when receiving an image\n         *\n         * @param { 'imageArrival' } type Callback used to return the next image.\n         * @param { AsyncCallback<void> } callback Callback used to return image.\n         * @syscap SystemCapability.Multimedia.Image.ImageReceiver\n         * @since 9\n         */\n        on(type: 'imageArrival', callback: AsyncCallback<void>): void;\n        /**\n         * Remove callback subscriptions when releasing buffer\n         *\n         * @param { 'imageArrival' } type - Event type.\n         * @param { AsyncCallback<void> } callback Callback to be removed.\n         * @syscap SystemCapability.Multimedia.Image.ImageReceiver\n         * @since 13\n         */\n        off(type: 'imageArrival', callback?: AsyncCallback<void>): void;\n        /**\n         * Release image receiver instance and uses a callback to return the result.\n         *\n         * @param { AsyncCallback<void> } callback Callback to return the operation result.\n         * @syscap SystemCapability.Multimedia.Image.ImageReceiver\n         * @since 9\n         */\n        release(callback: AsyncCallback<void>): void;\n        /**\n         * Release image receiver instance and uses a promise to return the result.\n         *\n         * @returns { Promise<void> } A Promise instance used to return the operation result.\n         * @syscap SystemCapability.Multimedia.Image.ImageReceiver\n         * @since 9\n         */\n        release(): Promise<void>;\n    }\n    /**\n     * Image creator object.\n     *\n     * @typedef ImageCreator\n     * @syscap SystemCapability.Multimedia.Image.ImageCreator\n     * @since 9\n     */\n    interface ImageCreator {\n        /**\n         * Image capacity.\n         *\n         * @type { number }\n         * @readonly\n         * @syscap SystemCapability.Multimedia.Image.ImageCreator\n         * @since 9\n         */\n        readonly capacity: number;\n        /**\n         * Image format.\n         *\n         * @type { ImageFormat }\n         * @readonly\n         * @syscap SystemCapability.Multimedia.Image.ImageCreator\n         * @since 9\n         */\n        readonly format: ImageFormat;\n        /**\n         * Apply for new graphic buffer from free queue and use a callback to return the result.\n         *\n         * @param { AsyncCallback<Image> } callback Callback to return the operation result.\n         * @syscap SystemCapability.Multimedia.Image.ImageCreator\n         * @since 9\n         */\n        dequeueImage(callback: AsyncCallback<Image>): void;\n        /**\n         * Apply for new graphic buffer from free queue and uses a promise to return the result.\n         *\n         * @returns { Promise<Image> } A Promise instance used to return the operation result.\n         * @syscap SystemCapability.Multimedia.Image.ImageCreator\n         * @since 9\n         */\n        dequeueImage(): Promise<Image>;\n        /**\n         * Queue buffer to dirty queue and uses a callback to return the result.\n         *\n         * @param { Image } interface\n         * @param { AsyncCallback<void> } callback Callback to return the operation result.\n         * @syscap SystemCapability.Multimedia.Image.ImageCreator\n         * @since 9\n         */\n        queueImage(interface: Image, callback: AsyncCallback<void>): void;\n        /**\n         * Queue buffer to dirty queue and uses a promise to return the result.\n         *\n         * @param { Image } interface\n         * @returns { Promise<void> } A Promise instance used to return the operation result.\n         * @syscap SystemCapability.Multimedia.Image.ImageCreator\n         * @since 9\n         */\n        queueImage(interface: Image): Promise<void>;\n        /**\n         * Subscribe callback when releasing buffer\n         *\n         * @param { 'imageRelease' } type Callback used to return the operation result.\n         * @param { AsyncCallback<void> } callback Callback used to return the operation result.\n         * @syscap SystemCapability.Multimedia.Image.ImageCreator\n         * @since 9\n         */\n        on(type: 'imageRelease', callback: AsyncCallback<void>): void;\n        /**\n         * Remove callback subscriptions when releasing buffer\n         *\n         * @param { 'imageRelease' } type - Event type.\n         * @param { AsyncCallback<void> } callback Callback to be removed.\n         * @syscap SystemCapability.Multimedia.Image.ImageCreator\n         * @since 13\n         */\n        off(type: 'imageRelease', callback?: AsyncCallback<void>): void;\n        /**\n         * Releases buffer in bufferqueue instance and uses a callback to return the result.\n         *\n         * @param { AsyncCallback<void> } callback Callback to return the operation result.\n         * @syscap SystemCapability.Multimedia.Image.ImageCreator\n         * @since 9\n         */\n        release(callback: AsyncCallback<void>): void;\n        /**\n         * Releases buffer in bufferqueue instance and uses a promise to return the result.\n         *\n         * @returns { Promise<void> } A Promise instance used to return the operation result.\n         * @syscap SystemCapability.Multimedia.Image.ImageCreator\n         * @since 9\n         */\n        release(): Promise<void>;\n    }\n    /**\n     * Obtains the image formats (MIME types) that can be decoded.\n     *\n     * @returns { string[] } Returns an array of the supported image formats.\n     * @syscap SystemCapability.Multimedia.ImageSource\n     * @since 20\n     */\n    function getImageSourceSupportedFormats(): string[];\n    /**\n     * Obtains the image formats (MIME types) that can be encoded.\n     *\n     * @returns { string[] } Returns an array of the supported image formats.\n     * @syscap SystemCapability.Multimedia.ImagePacker\n     * @since 20\n     */\n    function getImagePackerSupportedFormats(): string[];\n}\nexport default image;\n",
}
export default FILE;